public interface AccessToken
Modifier and Type | Interface and Description |
---|---|
static class |
AccessToken.Type |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getClaim(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
java.lang.Long |
getExpirationTime()
Optional.
|
JwtClaims |
getJwtClaims()
Access token's claims
|
Scope |
getScope()
Optional.
|
java.lang.String |
getToken() |
AccessToken.Type |
getType() |
boolean |
isExpired()
Checks if the Access Token is expired, taking into account the min
validity time configured by the user.
|
boolean |
isJWT()
Signify, if access token is JWT based, or opaque.
|
java.lang.String getToken()
boolean isJWT()
JwtClaims getJwtClaims()
JwtClaims.NONE
otherwise.java.util.Map<java.lang.String,java.lang.Object> getClaims()
java.lang.Object getClaim(java.lang.String key)
key
- the claim keyjava.lang.Long getExpirationTime()
boolean isExpired()
true
, if access token is expired or it will be expired in
the next X milliseconds configured by user.Scope getScope()
AccessToken.Type getType()