Class RefreshTokenClaimsSet
- java.lang.Object
-
- org.geant.idpextension.oidc.token.support.TokenClaimsSet
-
- org.geant.idpextension.oidc.token.support.RefreshTokenClaimsSet
-
public final class RefreshTokenClaimsSet extends TokenClaimsSet
Class wrapping claims set for refresh token.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.geant.idpextension.oidc.token.support.TokenClaimsSet
TokenClaimsSet.Builder<T extends TokenClaimsSet>
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private static StringVALUE_TYPE_RFValue of refresh token claims set type.-
Fields inherited from class org.geant.idpextension.oidc.token.support.TokenClaimsSet
KEY_AC_ID, KEY_ACR, KEY_AUTH_TIME, KEY_CLAIMS, KEY_CLIENTID, KEY_CODE_CHALLENGE, KEY_CONSENTABLE_CLAIMS, KEY_CONSENTED_CLAIMS, KEY_DELIVERY_CLAIMS, KEY_DELIVERY_CLAIMS_IDTOKEN, KEY_DELIVERY_CLAIMS_USERINFO, KEY_EXPIRATION_TIME, KEY_ISSUED_AT, KEY_ISSUER, KEY_NONCE, KEY_REDIRECT_URI, KEY_SCOPE, KEY_SUBJECT, KEY_TYPE, KEY_USER_PRINCIPAL, tokenClaimsSet
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRefreshTokenClaimsSet(com.nimbusds.jwt.JWTClaimsSet refreshTokenClaimsSet)Private constructor for the parser.RefreshTokenClaimsSet(TokenClaimsSet tokenClaimsSet, Instant iat, Instant exp)Constructor for refresh token claims set when derived from authz code.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RefreshTokenClaimsSetparse(String refreshTokenClaimsSet)Parses refresh token from string (JSON).static RefreshTokenClaimsSetparse(String wrappedAccessToken, net.shibboleth.utilities.java.support.security.DataSealer dataSealer)Parses refresh token from sealed refresh token.-
Methods inherited from class org.geant.idpextension.oidc.token.support.TokenClaimsSet
getACR, getAuthenticationTime, getClaimsRequest, getClaimsSet, getClientID, getCodeChallenge, getConsentableClaims, getConsentedClaims, getDeliveryClaims, getExp, getID, getIDTokenDeliveryClaims, getNonce, getPrincipal, getRedirectURI, getScope, getType, getUserinfoDeliveryClaims, isExpired, serialize, serialize, verifyParsedClaims
-
-
-
-
Field Detail
-
VALUE_TYPE_RF
private static final String VALUE_TYPE_RF
Value of refresh token claims set type.- See Also:
- Constant Field Values
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
-
Constructor Detail
-
RefreshTokenClaimsSet
public RefreshTokenClaimsSet(@Nonnull TokenClaimsSet tokenClaimsSet, @Nonnull Instant iat, @Nonnull Instant exp)Constructor for refresh token claims set when derived from authz code.- Parameters:
tokenClaimsSet- Authorize Code / Refresh Token this token is based on. Must not be NULL.iat- Issue time of the token. Must not be NULL.exp- Expiration time of the token. Must not be NULL.- Throws:
RuntimeException- if called with non allowed null parameters
-
RefreshTokenClaimsSet
private RefreshTokenClaimsSet(com.nimbusds.jwt.JWTClaimsSet refreshTokenClaimsSet)
Private constructor for the parser.- Parameters:
refreshTokenClaimsSet- refresh token claims set
-
-
Method Detail
-
parse
public static RefreshTokenClaimsSet parse(String refreshTokenClaimsSet) throws ParseException
Parses refresh token from string (JSON).- Parameters:
refreshTokenClaimsSet- JSON String representation of the code- Returns:
- AccessTokenClaimsSet instance if parsing is successful.
- Throws:
ParseException- if parsing fails for example due to incompatible types.
-
parse
public static RefreshTokenClaimsSet parse(@Nonnull String wrappedAccessToken, @Nonnull net.shibboleth.utilities.java.support.security.DataSealer dataSealer) throws ParseException, net.shibboleth.utilities.java.support.security.DataSealerException
Parses refresh token from sealed refresh token.- Parameters:
wrappedAccessToken- wrapped refresh tokendataSealer- sealer to unwrap the refresh token- Returns:
- refresh token claims set.
- Throws:
ParseException- is thrown if unwrapped refresh token is not understoodnet.shibboleth.utilities.java.support.security.DataSealerException- is thrown if unwrapping fails
-
-