Class AclToken


  • public class AclToken
    extends Object
    • Constructor Detail

      • AclToken

        public AclToken()
    • Method Detail

      • getAccessorId

        public String getAccessorId()
        Returns accessorId
        See Also:
        accessorId
      • getSecretId

        public String getSecretId()
        Returns secretId
        See Also:
        secretId
      • getDescription

        public String getDescription()
      • getLocal

        public Boolean getLocal()
      • setDescription

        public AclToken setDescription​(String description)
        Sets an optional free-form description that is human-readable
        Parameters:
        description -
        See Also:
        description
      • local

        public AclToken local()
        Indicates that it is a local token
        See Also:
        local
      • setExpirationTime

        public AclToken setExpirationTime​(String expirationTime)
        Sets the expiration time. Optional, by default NO expiration.
        Parameters:
        expirationTime - must be between 1 minute and 24 hours in the future
        See Also:
        expirationTime
      • setNamespace

        public AclToken setNamespace​(String namespace)
        Sets an optional namespace. Default value is ns URL query parameter or in the X-Consul-Namespace header, or 'default' namespace.
        Parameters:
        namespace -
        See Also:
        namespace