Class AccessTokenClaimsSet


  • public final class AccessTokenClaimsSet
    extends TokenClaimsSet
    Class wrapping claims set for access token.
    • Constructor Detail

      • AccessTokenClaimsSet

        @Deprecated(since="3.1.0",
                    forRemoval=true)
        public AccessTokenClaimsSet​(@Nonnull
                                    TokenClaimsSet tokenClaimsSet,
                                    @Nonnull
                                    com.nimbusds.oauth2.sdk.Scope scope,
                                    @Nullable
                                    com.nimbusds.openid.connect.sdk.claims.ClaimsSet dlClaims,
                                    @Nullable
                                    com.nimbusds.openid.connect.sdk.claims.ClaimsSet dlClaimsUI,
                                    @Nonnull
                                    Instant iat,
                                    @Nonnull
                                    Instant exp)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Constructor for access token claims set when derived from existing claims set.
        Parameters:
        tokenClaimsSet - Authorize Code / Refresh Token this token is based on
        scope - Validated and possibly reduced scope of the authentication request
        dlClaims - Claims set for token delivery.
        dlClaimsUI - Claims set for token delivery, user info only.
        iat - Issue time of the token
        exp - Expiration time of the token
      • AccessTokenClaimsSet

        protected AccessTokenClaimsSet​(@Nonnull
                                       com.nimbusds.jwt.JWTClaimsSet accessTokenClaimsSet)
        Private constructor for the parser.
        Parameters:
        accessTokenClaimsSet - access token claims set
    • Method Detail

      • parse

        @Nonnull
        public static AccessTokenClaimsSet parse​(@Nonnull @NotEmpty
                                                 String accessTokenClaimsSet)
                                          throws ParseException
        Parses access token from string (JSON).
        Parameters:
        accessTokenClaimsSet - JSON String representation of the code
        Returns:
        AccessTokenClaimsSet instance if parsing is successful.
        Throws:
        ParseException - if parsing fails for example due to incompatible types.