Package com.ibm.security.access.ciclient
Class AccessToken
java.lang.Object
com.ibm.security.access.ciclient.AccessToken
A representation of the CI Access Token.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the access token.int
Return the number of seconds that this access token is valid.Returns the time that this access token expires.getScope()
Returns the scope for which this access token is valid.Returns the type of the access token.
-
Method Details
-
getAccessToken
Returns the access token.- Returns:
- String
-
getScope
Returns the scope for which this access token is valid.- Returns:
- String
-
getTokenType
Returns the type of the access token. For example Bearer.- Returns:
- String
-
getExpiresIn
public int getExpiresIn()Return the number of seconds that this access token is valid.- Returns:
- int
-
getExpiresTime
Returns the time that this access token expires.- Returns:
- java.time.Instant
-