Package com.ibm.security.access.ciclient
Class AccessToken
- java.lang.Object
-
- com.ibm.security.access.ciclient.AccessToken
-
public class AccessToken extends java.lang.Object
A representation of the CI Access Token.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
Returns the access token.int
getExpiresIn()
Return the number of seconds that this access token is valid.java.time.Instant
getExpiresTime()
Returns the time that this access token expires.java.lang.String
getScope()
Returns the scope for which this access token is valid.java.lang.String
getTokenType()
Returns the type of the access token.
-
-
-
Method Detail
-
getAccessToken
public java.lang.String getAccessToken()
Returns the access token.- Returns:
- String
-
getScope
public java.lang.String getScope()
Returns the scope for which this access token is valid.- Returns:
- String
-
getTokenType
public java.lang.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
public java.time.Instant getExpiresTime()
Returns the time that this access token expires.- Returns:
- java.time.Instant
-
-