Package com.strongdm.api
Class Token
java.lang.Object
com.strongdm.api.Token
- All Implemented Interfaces:
Account
A Token is an account providing tokenized access for automation or integration use.
Tokens include admin tokens, API keys, and SCIM tokens.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCorresponds to the type of token, e.g.CreatedAt is the timestamp when the token was createdThe timestamp when the Token will expire.Duration from token creation to expiration.getId()Unique identifier of the Token.getName()Unique human-readable name of the Token.Permissions assigned to the token, e.g.The timestamp when the Token was last rekeyed.booleanReserved for future use.getTags()Tags is a map of key, value pairs.voidsetAccountType(String in) Corresponds to the type of token, e.g.voidsetCreatedAt(Date in) CreatedAt is the timestamp when the token was createdvoidsetDeadline(Date in) The timestamp when the Token will expire.voidsetDuration(Duration in) Duration from token creation to expiration.voidUnique identifier of the Token.voidUnique human-readable name of the Token.voidsetPermissions(List<String> in) Permissions assigned to the token, e.g.voidsetRekeyed(Date in) The timestamp when the Token was last rekeyed.voidsetSuspended(boolean in) Reserved for future use.voidTags is a map of key, value pairs.
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
getAccountType
Corresponds to the type of token, e.g. api or admin-token. -
setAccountType
Corresponds to the type of token, e.g. api or admin-token. -
getCreatedAt
CreatedAt is the timestamp when the token was created- Specified by:
getCreatedAtin interfaceAccount
-
setCreatedAt
CreatedAt is the timestamp when the token was created- Specified by:
setCreatedAtin interfaceAccount
-
getDeadline
The timestamp when the Token will expire. -
setDeadline
The timestamp when the Token will expire. -
getDuration
Duration from token creation to expiration. -
setDuration
Duration from token creation to expiration. -
getId
Unique identifier of the Token. -
setId
Unique identifier of the Token. -
getName
Unique human-readable name of the Token. -
setName
Unique human-readable name of the Token. -
getPermissions
Permissions assigned to the token, e.g. role:create. -
setPermissions
Permissions assigned to the token, e.g. role:create. -
getRekeyed
The timestamp when the Token was last rekeyed. -
setRekeyed
The timestamp when the Token was last rekeyed. -
getSuspended
public boolean getSuspended()Reserved for future use. Always false for tokens.- Specified by:
getSuspendedin interfaceAccount
-
setSuspended
public void setSuspended(boolean in) Reserved for future use. Always false for tokens.- Specified by:
setSuspendedin interfaceAccount
-
getTags
Tags is a map of key, value pairs. -
setTags
Tags is a map of key, value pairs.
-