public class JwtIdToken extends AbstractJwt
| Constructor and Description |
|---|
JwtIdToken(de.samply.common.config.OAuth2Client config,
String serialized)
|
JwtIdToken(String clientId,
PublicKey publicKey,
String serialized)
|
| Modifier and Type | Method and Description |
|---|---|
List<RoleDto> |
getRoles()
Returns a list of roles.
|
protected String |
getTokenType()
This method must return one of the currently defined token types.
|
boolean |
isValid()
Checks if this Jwt is valid.
|
getClaimsSet, getPublicKey, getSerialized, getSubjectpublic JwtIdToken(de.samply.common.config.OAuth2Client config,
String serialized)
throws JwtException
config - the OAuth2 client side configuration. The public key is needed to check the
signature.serialized - the serialized JwtJwtException - if any error occurs during deserialization
or signature verificationpublic JwtIdToken(String clientId, PublicKey publicKey, String serialized) throws JwtException
clientId - Your client IDpublicKey - The IdP's public keyserialized - the serialized ID tokenJwtException - JwtExceptionpublic boolean isValid()
isValid in class AbstractJwtprotected String getTokenType()
AbstractJwtACCESS_TOKEN ID_TOKEN REFRESH_TOKEN
getTokenType in class AbstractJwtCopyright © 2020 Samply Community. All rights reserved.