Class AccessControlRule

java.lang.Object
org.cloudinary.json.JSONObject
com.cloudinary.AccessControlRule
All Implemented Interfaces:
java.io.Serializable

public class AccessControlRule
extends JSONObject
A class representing a single access control rule for a resource. Used as a parameter for Api.update(java.lang.String, java.util.Map) and Uploader.upload(java.lang.Object, java.util.Map)
See Also:
Serialized Form
  • Method Details

    • token

      public static AccessControlRule token()
      Construct a new token access rule
      Returns:
      The access rule instance
    • anonymousFrom

      public static AccessControlRule anonymousFrom​(java.util.Date start)
      Construct a new anonymous access rule
      Parameters:
      start - The start date for the rule
      Returns:
      The access rule instance
    • anonymousUntil

      public static AccessControlRule anonymousUntil​(java.util.Date end)
      Construct a new anonymous access rule
      Parameters:
      end - The end date for the rule
      Returns:
      The access rule instance
    • anonymous

      public static AccessControlRule anonymous​(java.util.Date start, java.util.Date end)
      Construct a new anonymous access rule
      Parameters:
      start - The start date for the rule
      end - The end date for the rule
      Returns:
      The access rule instance