public class IdentityTokenImpl extends Object implements IdentityToken
| Constructor and Description |
|---|
IdentityTokenImpl(OpenIdConfiguration configuration,
String token) |
| 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 identity token's claims that was received from the OpenId
Connect provider
|
String |
getToken()
The identity token
|
com.nimbusds.jwt.JWT |
getTokenJWT() |
boolean |
isEncrypted() |
boolean |
isExpired()
Checks if the Identity Token is expired.
|
boolean |
isSigned() |
void |
setClaims(Map<String,Object> claims) |
String |
toString() |
public IdentityTokenImpl(OpenIdConfiguration configuration, String token)
public com.nimbusds.jwt.JWT getTokenJWT()
public String getToken()
IdentityTokengetToken in interface IdentityTokenpublic Map<String,Object> getClaims()
IdentityTokengetClaims in interface IdentityTokenpublic Object getClaim(String key)
IdentityTokengetClaim in interface IdentityTokenpublic boolean isEncrypted()
public boolean isSigned()
public boolean isExpired()
IdentityTokenisExpired in interface IdentityTokentrue, if identity token is expired or it will be expired in
the next X milliseconds configured by user.Copyright © 2020. All rights reserved.