Class UserWithToken

java.lang.Object
com.linecorp.centraldogma.server.metadata.User
com.linecorp.centraldogma.server.metadata.UserWithToken
All Implemented Interfaces:
Identifiable, Serializable

public class UserWithToken extends User
A User which accesses the API with a secret.
See Also:
  • Constructor Details

    • UserWithToken

      public UserWithToken(String login, Token token)
      Creates a new instance.
  • Method Details

    • token

      public Token token()
      Returns the Token of the user.
    • isAdmin

      public boolean isAdmin()
      Description copied from class: User
      Returns true if this user has administrative privileges.
      Overrides:
      isAdmin in class User
    • toString

      public String toString()
      Overrides:
      toString in class User