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
-
Method Summary
Modifier and TypeMethodDescriptionCorresponds to the type of token, e.g.The 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.boolean
Reserved for future use.getTags()
Tags is a map of key, value pairs.void
setAccountType
(String in) Corresponds to the type of token, e.g.void
setDeadline
(Date in) The timestamp when the Token will expire.void
setDuration
(Duration in) Duration from token creation to expiration.void
Unique identifier of the Token.void
Unique human-readable name of the Token.void
setPermissions
(List<String> in) Permissions assigned to the token, e.g.void
setRekeyed
(Date in) The timestamp when the Token was last rekeyed.void
setSuspended
(boolean in) Reserved for future use.void
Tags 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. -
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:
getSuspended
in interfaceAccount
-
setSuspended
public void setSuspended(boolean in) Reserved for future use. Always false for tokens.- Specified by:
setSuspended
in interfaceAccount
-
getTags
Tags is a map of key, value pairs. -
setTags
Tags is a map of key, value pairs.
-