Class AuthorizationCodeNonceAttributes

All Implemented Interfaces:
Iterable<Attribute>, AttributeContainer<Attributes>, SerializableAsMap, KeyBoundTokenAttributes

public final class AuthorizationCodeNonceAttributes extends NonceAttributes implements KeyBoundTokenAttributes
This class represents the set of attributes provided to the NonceIssuer service when issuing an authorization code.
Since:
8.0.0
  • Method Details

    • of

      public static AuthorizationCodeNonceAttributes of(Attributes attributes)
      Creates an authorization code nonce attributes using the provided Attributes.
      Parameters:
      attributes - the attributes used to create AuthorizationCodeNonceAttributes
      Returns:
      the created AuthorizationCodeNonceAttributes
    • fromMap

      public static AuthorizationCodeNonceAttributes fromMap(Map<String,?> map)
      Creates an authorization code attributes using the provided map.
      Parameters:
      map - the map used to create AuthorizationCodeNonceAttributes
      Returns:
      the created AuthorizationCodeNonceAttributes
    • withAuthenticationAttributes

      public AuthorizationCodeNonceAttributes withAuthenticationAttributes(AuthenticationAttributes authenticationAttributes)
      Updates the object with authenticationAttributes.
      Parameters:
      authenticationAttributes - the authentication attributes to add
      Returns:
      copy of the AuthorizationCodeNonceAttributes, with the authenticationAttributes
    • getScope

      public String getScope()
      Returns:
      the value of the scope claim
    • getOwner

      public String getOwner()
      Returns:
      the value of the owner claim
    • getAllowedClaims

      public MapAttributeValue getAllowedClaims()
      Returns:
      the allowed claims map, represented as a MapAttributeValue
    • getAudience

      public List<String> getAudience()
      Returns:
      the value of the aud claim
    • getClientId

      public String getClientId()
      Returns:
      the value of the clientId claim
    • getRedirectUri

      public String getRedirectUri()
      Returns:
      the value of the redirectUri claim
    • isRedirectUriProvided

      public boolean isRedirectUriProvided()
      Returns:
      the value of the redirectUriProvided claim
    • getAuthenticationAttributes

      @Nullable public @Nullable AuthenticationAttributes getAuthenticationAttributes()
      Returns:
      the authentication attributes or null
    • getState

      @Nullable public @Nullable String getState()
      Returns:
      the value of the state claim or null
    • getSid

      @Nullable public @Nullable String getSid()
      Returns:
      the value of the sid claim or null
    • getCodeChallenge

      @Nullable public @Nullable String getCodeChallenge()
      Returns:
      the value of the codeChallenge claim or null
    • getCodeChallengeMethod

      @Nullable public @Nullable String getCodeChallengeMethod()
      Returns:
      the value of the codeChallengeMethod claim or null
    • getProfile

      @Nullable public @Nullable String getProfile()
      Gets the profile on which this device code was issued, or null if the profile is unknown.

      The profile will be null if the device code was issued by a server version that didn't add the profile to the nonce data. This should only happen during upgrade periods.

      Returns:
      the profile name
    • getConfirmationAttributes

      @Nullable public @Nullable ConfirmationAttributes getConfirmationAttributes()
      Specified by:
      getConfirmationAttributes in interface KeyBoundTokenAttributes
      Returns:
      the confirmation attributes if this token has them, null if not.