Class AuthorizeCodeClaimsSet
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.token.support.TokenClaimsSet
-
- net.shibboleth.idp.plugin.oidc.op.token.support.AuthorizeCodeClaimsSet
-
public final class AuthorizeCodeClaimsSet extends TokenClaimsSet
Class wrapping claims set for authorize code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorizeCodeClaimsSet.BuilderBuilder to create instance of AuthorizeCodeClaimsSet.
-
Field Summary
Fields Modifier and Type Field Description static StringVALUE_TYPE_ACValue of authorize code claims set type.-
Fields inherited from class net.shibboleth.idp.plugin.oidc.op.token.support.TokenClaimsSet
KEY_AC_ID, KEY_ACR, KEY_AUDIENCE, KEY_AUTH_TIME, KEY_CLAIMS, KEY_CLIENTID, KEY_CODE_CHALLENGE, KEY_CONSENT_ENABLED, KEY_CONSENTED_CLAIMS, KEY_DELIVERY_CLAIMS, KEY_DELIVERY_CLAIMS_IDTOKEN, KEY_DELIVERY_CLAIMS_USERINFO, KEY_EXPIRATION_TIME, KEY_ISSUED_AT, KEY_ISSUER, KEY_LEGACY_CLIENTID, KEY_NONCE, KEY_NOTBEFORE_TIME, KEY_REDIRECT_URI, KEY_SCOPE, KEY_SUBJECT, KEY_TYPE, KEY_USER_PRINCIPAL
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAuthorizeCodeClaimsSet(com.nimbusds.jwt.JWTClaimsSet authzCodeClaimsSet)Private constructor for the parser.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorizeCodeClaimsSetparse(String authorizeCodeClaimsSet)Parses authz code from string (JSON).static AuthorizeCodeClaimsSetparse(String wrappedAuthCode, DataSealer dataSealer)Parses authz code from sealed authorization code.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.token.support.TokenClaimsSet
getACR, getAudience, getAuthenticationTime, getClaimsRequest, getClaimsSet, getClientID, getCodeChallenge, getConsentedClaims, getDeliveryClaims, getExp, getID, getIDTokenDeliveryClaims, getIssuedAt, getIssuer, getNonce, getNotBefore, getPrincipal, getRedirectURI, getScope, getSubject, getType, getUserinfoDeliveryClaims, isConsentEnabled, isExpired, isTimeValid, serialize, serialize, setClaimsSet, verifyParsedClaims
-
-
-
-
Field Detail
-
VALUE_TYPE_AC
@Nonnull @NotEmpty public static final String VALUE_TYPE_AC
Value of authorize code claims set type.- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static AuthorizeCodeClaimsSet parse(String authorizeCodeClaimsSet) throws ParseException
Parses authz code from string (JSON).- Parameters:
authorizeCodeClaimsSet- JSON String representation of the code- Returns:
- AuthorizeCodeClaimsSet instance if parsing is successful.
- Throws:
ParseException- if parsing fails for example due to incompatible types.
-
parse
public static AuthorizeCodeClaimsSet parse(@Nonnull String wrappedAuthCode, @Nonnull DataSealer dataSealer) throws ParseException, DataSealerException
Parses authz code from sealed authorization code.- Parameters:
wrappedAuthCode- wrapped codedataSealer- sealer to unwrap the code- Returns:
- authorize code
- Throws:
ParseException- is thrown if unwrapped code is not understoodDataSealerException- is thrown if unwrapping fails
-
-