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, isValid
public 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()
AbstractJWT
ACCESS_TOKEN ID_TOKEN REFRESH_TOKEN
getTokenType
in class AbstractJWT
Copyright © 2015 Universitätsmedizin Mainz, Abteilung IMBEI. All rights reserved.