Class Token
java.lang.Object
com.tivoli.am.fim.trustserver.sts.oauth20.Token
Represents an OAuth Token
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the clientId of the authorization token.long
Return the creation date of the token.long
Return the date last used of the token.getId()
Return the id of the token.int
Return the life time of the token in secondsReturn the redirectUri of the authorization token.getScope()
Return the scope of the authorization token.Return the StateId of the authorization token.Return the sub-type of the token.getType()
Return the type of the token.Return the Username of the authorization token.boolean
boolean
boolean
updateUsernameCase
(String username) Updates the Username's character case.
-
Field Details
-
Token_java_copyright
- See Also:
-
TOKEN_ID
- See Also:
-
TOKEN_TYPE
- See Also:
-
TOKEN_SUB_TYPE
- See Also:
-
TOKEN_DATE_CREATED
- See Also:
-
TOKEN_DATE_LAST_USED
- See Also:
-
TOKEN_LIFETIME
- See Also:
-
TOKEN_SCOPE
- See Also:
-
TOKEN_USERNAME
- See Also:
-
TOKEN_CLIENT_ID
- See Also:
-
TOKEN_REDIR_URI
- See Also:
-
TOKEN_STATE_ID
- See Also:
-
TOKEN_ENABLED
- See Also:
-
-
Constructor Details
-
Token
public Token(String tokenId, String type, String subType, long createdAt, long lastUsedAt, int lifetime, String scope, String clientId, String redirUri, String username, String stateId, String enabled) Initialize this Token with the specified parameters.- Parameters:
tokenId
-type
-subType
-createdAt
-lastUsedAt
-lifetime
-scope
-
-
-
Method Details
-
getId
Return the id of the token. If hashed storage is enabled, this will be the hashed value of the token, with a prefix of the hash algorithm- Returns:
- The id of the token.
-
getType
Return the type of the token.- Returns:
- The type of the token.
-
getSubType
Return the sub-type of the token.- Returns:
- The sub-type of the token.
-
getDateCreated
public long getDateCreated()Return the creation date of the token.- Returns:
- The creation date of the token in milliseconds.
-
getDateLastUsed
public long getDateLastUsed()Return the date last used of the token.- Returns:
- The date last used for the token in milliseconds.
-
getLifetime
public int getLifetime()Return the life time of the token in seconds- Returns:
- The life time of the token.
-
getScope
Return the scope of the authorization token.- Returns:
- The scope of the authorization token.
-
getClientId
Return the clientId of the authorization token.- Returns:
- The clientId of the authorization token.
-
getRedirectUri
Return the redirectUri of the authorization token.- Returns:
- The redirectUri of the authorization token.
-
getUsername
Return the Username of the authorization token.- Returns:
- The Username of the authorization token.
-
updateUsernameCase
Updates the Username's character case.- Returns:
- Whether the Username matched and was updated.
-
getStateId
Return the StateId of the authorization token.- Returns:
- The StateId of the authorization token.
-
isEnabled
public boolean isEnabled() -
isExpired
public boolean isExpired()
-