Interface AccessToken
- 
 public interface AccessTokenThe Access Token is used by an application to access protected resources.- Author:
- jGauravGupta, Rudy De Busscher
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classAccessToken.Type
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetClaim(String key)Map<String,Object>getClaims()LonggetExpirationTime()Optional.JwtClaimsgetJwtClaims()Access token's claimsScopegetScope()Optional.StringgetToken()AccessToken.TypegetType()booleanisExpired()Checks if the Access Token is expired, taking into account the min validity time configured by the user.booleanisJWT()Signify, if access token is JWT based, or opaque.
 
- 
- 
- 
Method Detail- 
getTokenString getToken() - Returns:
- The access token
 
 - 
isJWTboolean isJWT() Signify, if access token is JWT based, or opaque.- Returns:
- true if access token is JWT token.
 
 - 
getJwtClaimsJwtClaims getJwtClaims() Access token's claims- Returns:
- access token claims if it is a JWT Token, JwtClaims.NONEotherwise.
 
 - 
getClaimsMap<String,Object> getClaims() - Returns:
- the access token's claims that was received from the OpenId Connect provider
 
 - 
getClaimObject getClaim(String key) - Parameters:
- key- the claim key
- Returns:
- the identity token's claim based on requested key type or null if not provided
 
 - 
getExpirationTimeLong getExpirationTime() Optional. Expiration time of the Access Token in seconds since the response was generated.- Returns:
- the expiration time of the Access Token or null if expiration time is not known
 
 - 
isExpiredboolean isExpired() Checks if the Access Token is expired, taking into account the min validity time configured by the user.- Returns:
- true, if access token is expired or it will be expired in the next X milliseconds configured by user.
 
 - 
getScopeScope getScope() Optional. Scope of the Access Token.- Returns:
- the scope of the Access Token
 
 - 
getTypeAccessToken.Type getType() - Returns:
- the Type of the Access Token
 
 
- 
 
-