io.vertx.ext.consul.token

## Class AclToken

- java.lang.Object
- - io.vertx.ext.consul.token.AclToken

-     public class AclToken
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AclToken()`
    `AclToken(JsonObject json)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AclToken` | `addPolicy(PolicyLink policyLink)` Adds a policy.
    `String` | `getAccessorId()` Returns accessorId
    `String` | `getDescription()`
    `Boolean` | `getLocal()`
    `List<PolicyLink>` | `getPolicies()`
    `String` | `getSecretId()` Returns secretId
    `AclToken` | `local()` Indicates that it is a local token
    `AclToken` | `setDescription(String description)` Sets an optional free-form description that is human-readable
    `AclToken` | `setExpirationTime(String expirationTime)` Sets the expiration time.
    `AclToken` | `setNamespace(String namespace)` Sets an optional namespace.
    `AclToken` | `setNodeIdentities(List<NodeTokenApplyingOptions> nodeIdentities)` Sets a list of nodes
    `AclToken` | `setPolicies(List<PolicyLink> policies)` Sets policies
    `AclToken` | `setServiceIdentities(List<ServiceTokenApplyingOptions> serviceIdentities)` Sets a list of services
    `JsonObject` | `toJson()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AclToken

          public AclToken()

    - #### AclToken

          public AclToken(JsonObject json)

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

    - #### getAccessorId

          public String getAccessorId()

      Returns accessorId
      See Also:
        `accessorId`

    - #### getSecretId

          public String getSecretId()

      Returns secretId
      See Also:
        `secretId`

    - #### getDescription

          public String getDescription()

    - #### getPolicies

          public List<PolicyLink> getPolicies()

    - #### 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`

    - #### setPolicies

          public AclToken setPolicies(List<PolicyLink> policies)

      Sets policies
      Parameters:
        `policies` -
      See Also:
        `PolicyLink`

    - #### addPolicy

          public AclToken addPolicy(PolicyLink policyLink)

      Adds a policy. Like `setPolicies(List)`
      Parameters:
        `policyLink` -

    - #### 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`

    - #### setNodeIdentities

          public AclToken setNodeIdentities(List<NodeTokenApplyingOptions> nodeIdentities)

      Sets a list of nodes
      See Also:
        `NodeTokenApplyingOptions`

    - #### setServiceIdentities

          public AclToken setServiceIdentities(List<ServiceTokenApplyingOptions> serviceIdentities)

      Sets a list of services
      See Also:
        `ServiceTokenApplyingOptions`

Copyright © 2024 Eclipse. All rights reserved.