public class AccessTokenImpl extends Object implements AccessToken
AccessToken.Type| Constructor and Description |
|---|
AccessTokenImpl(OpenIdConfiguration configuration,
String tokenType,
String token,
Long expiresIn,
String scopeValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getClaim(String key)
Gets the identity token's claim based on requested key type.
|
Map<String,Object> |
getClaims()
Gets the access token's claims that was received from the OpenId Connect
provider
|
Long |
getExpirationTime()
Optional.
|
Scope |
getScope()
Optional.
|
String |
getToken()
The access token
|
com.nimbusds.jwt.JWT |
getTokenJWT() |
AccessToken.Type |
getType()
Type of the Access Token.
|
boolean |
isEncrypted() |
boolean |
isExpired()
Checks if the Access Token is expired, taking into account the min
validity time configured by the user.
|
boolean |
isSigned() |
void |
setClaims(Map<String,Object> claims) |
String |
toString() |
public AccessTokenImpl(OpenIdConfiguration configuration, String tokenType, String token, Long expiresIn, String scopeValue)
public com.nimbusds.jwt.JWT getTokenJWT()
public boolean isExpired()
AccessTokenisExpired in interface AccessTokentrue, if access token is expired or it will be expired in
the next X milliseconds configured by user.public AccessToken.Type getType()
AccessTokengetType in interface AccessTokenpublic String getToken()
AccessTokengetToken in interface AccessTokenpublic Map<String,Object> getClaims()
AccessTokengetClaims in interface AccessTokenpublic Object getClaim(String key)
AccessTokengetClaim in interface AccessTokenpublic Long getExpirationTime()
AccessTokengetExpirationTime in interface AccessTokenpublic Scope getScope()
AccessTokengetScope in interface AccessTokenpublic boolean isEncrypted()
public boolean isSigned()
Copyright © 2019. All rights reserved.