Class Token

java.lang.Object
com.strongdm.api.Token
All Implemented Interfaces:
Account

public class Token extends Object implements Account
A Token is an account providing tokenized access for automation or integration use. Tokens include admin tokens, API keys, and SCIM tokens.
  • Constructor Details

    • Token

      public Token()
  • Method Details

    • getAccountType

      public String getAccountType()
      Corresponds to the type of token, e.g. api or admin-token.
    • setAccountType

      public void setAccountType(String in)
      Corresponds to the type of token, e.g. api or admin-token.
    • getDeadline

      public Date getDeadline()
      The timestamp when the Token will expire.
    • setDeadline

      public void setDeadline(Date in)
      The timestamp when the Token will expire.
    • getDuration

      public Duration getDuration()
      Duration from token creation to expiration.
    • setDuration

      public void setDuration(Duration in)
      Duration from token creation to expiration.
    • getId

      public String getId()
      Unique identifier of the Token.
      Specified by:
      getId in interface Account
    • setId

      public void setId(String in)
      Unique identifier of the Token.
    • getName

      public String getName()
      Unique human-readable name of the Token.
    • setName

      public void setName(String in)
      Unique human-readable name of the Token.
    • getPermissions

      public List<String> getPermissions()
      Permissions assigned to the token, e.g. role:create.
    • setPermissions

      public void setPermissions(List<String> in)
      Permissions assigned to the token, e.g. role:create.
    • getRekeyed

      public Date getRekeyed()
      The timestamp when the Token was last rekeyed.
    • setRekeyed

      public void setRekeyed(Date in)
      The timestamp when the Token was last rekeyed.
    • getSuspended

      public boolean getSuspended()
      Reserved for future use. Always false for tokens.
      Specified by:
      getSuspended in interface Account
    • setSuspended

      public void setSuspended(boolean in)
      Reserved for future use. Always false for tokens.
      Specified by:
      setSuspended in interface Account
    • getTags

      public Map<String,String> getTags()
      Tags is a map of key, value pairs.
      Specified by:
      getTags in interface Account
    • setTags

      public void setTags(Map<String,String> in)
      Tags is a map of key, value pairs.
      Specified by:
      setTags in interface Account