public class JwtAccessToken extends AbstractJwt
| Constructor and Description |
|---|
JwtAccessToken(de.samply.common.config.OAuth2Client config,
String serialized)
|
JwtAccessToken(PublicKey key,
String serialized)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader()
Returns the string that must be used in the "Authorization" header.
|
List<String> |
getScopes()
Returns all scopes this access token was issued for.
|
String |
getState()
Returns the included state from the request.
|
protected String |
getTokenType()
This method must return one of the currently defined token types.
|
boolean |
isExtended()
Checks if there this is an extended access token.
|
getClaimsSet, getPublicKey, getSerialized, getSubject, isValidpublic JwtAccessToken(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 JwtAccessToken(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 List<String> getScopes()
public boolean isExtended()
public String getState()
public String getHeader()
protected String getTokenType()
AbstractJwtACCESS_TOKEN ID_TOKEN REFRESH_TOKEN
getTokenType in class AbstractJwtCopyright © 2020 Samply Community. All rights reserved.