java.lang.Object
com.linecorp.centraldogma.server.metadata.Token
All Implemented Interfaces:
Identifiable

public final class Token extends Object implements Identifiable
Specifies details of an application token.
  • Constructor Details

  • Method Details

    • id

      public String id()
      Description copied from interface: Identifiable
      Returns the String-formatted identifier.
      Specified by:
      id in interface Identifiable
    • appId

      public String appId()
      Returns the ID of the application.
    • secret

      @Nullable public String secret()
      Returns the secret.
    • isAdmin

      public boolean isAdmin()
      Returns whether this token has administrative privileges.
    • creation

      public UserAndTimestamp creation()
      Returns who created this token when.
    • deactivation

      @Nullable public UserAndTimestamp deactivation()
      Returns who deactivated this token when.
    • deletion

      @Nullable public UserAndTimestamp deletion()
      Returns who deleted this token when.
    • isActive

      public boolean isActive()
      Returns whether this token is activated.
    • isDeleted

      public boolean isDeleted()
      Returns whether this token is deleted.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withoutSecret

      public Token withoutSecret()
      Returns a new Token instance without its secret.