public class JwtRefreshToken extends AbstractJwt
| Constructor and Description |
|---|
JwtRefreshToken(de.samply.common.config.OAuth2Client config,
String serialized)
|
JwtRefreshToken(PublicKey key,
String serialized)
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getScopes()
Returns the scopes this refresh token was issued for.
|
protected String |
getTokenType()
This method must return one of the currently defined token types.
|
getClaimsSet, getPublicKey, getSerialized, getSubject, isValidpublic JwtRefreshToken(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 JwtRefreshToken(PublicKey key, String serialized) throws JwtException
key - The identity providers public key (needed to check the signature)serialized - the serialized JwtJwtException - if any error occurs during deserialization
or signature verificationpublic List<String> getScopes()
protected String getTokenType()
AbstractJwtACCESS_TOKEN ID_TOKEN REFRESH_TOKEN
getTokenType in class AbstractJwtCopyright © 2020 Samply Community. All rights reserved.