Class AccessTokenClaimsSet.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Default constructor.
        Since:
        3.1.0
      • Builder

        @Deprecated(since="3.1.0",
                    forRemoval=true)
        public Builder​(@Nonnull
                       IdentifierGenerationStrategy idGenerator,
                       @Nonnull
                       com.nimbusds.oauth2.sdk.id.ClientID clientID,
                       @Nonnull
                       String issuer,
                       @Nonnull
                       String userPrincipal,
                       @Nonnull
                       String subject,
                       @Nonnull
                       Instant issuedAt,
                       @Nonnull
                       Instant expiresAt,
                       @Nonnull
                       Instant authenticationTime,
                       @Nonnull
                       URI redirectURI,
                       @Nonnull
                       com.nimbusds.oauth2.sdk.Scope scope)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Constructor for access token builder.
        Parameters:
        idGenerator - Generator for pseudo unique identifier for the code
        clientID - Client Id of the rp
        issuer - OP issuer value
        userPrincipal - User Principal of the authenticated user
        subject - subject of the authenticated user
        issuedAt - Issue time of the authorize code
        expiresAt - Expiration time of the authorize code
        authenticationTime - Authentication time of the user
        redirectURI - Validated redirect URI of the authentication request
        scope - Scope of the authentication request
      • Builder

        public Builder​(@Nonnull
                       TokenClaimsSet existing,
                       @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)
        Constructor for access token claims set when derived from existing claims set.
        Parameters:
        existing - 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
        Since:
        3.1.0
      • Builder

        private Builder​(@Nonnull
                        TokenClaimsSet existing)
        Bases a builder on an existing token claims set.
        Parameters:
        existing - existing claim set