Package com.ibm.security.access.ciclient
Class AccessToken
- java.lang.Object
-
- com.ibm.security.access.ciclient.AccessToken
-
public class AccessToken extends java.lang.ObjectA representation of the CI Access Token.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessToken()Returns the access token.intgetExpiresIn()Return the number of seconds that this access token is valid.java.time.InstantgetExpiresTime()Returns the time that this access token expires.java.lang.StringgetScope()Returns the scope for which this access token is valid.java.lang.StringgetTokenType()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
-
-