Class AuthorizationDetails

java.lang.Object
org.forgerock.http.oauth2.AuthorizationDetails

public final class AuthorizationDetails extends Object
Represents a single entry from the authorization_details array in an OAuth 2.0 access token, as defined by RFC 9396 (Rich Authorization Requests).

The type field is mandatory per RFC 9396 ยง2 and is validated at construction time.

  • Constructor Details

    • AuthorizationDetails

      public AuthorizationDetails(JsonValue jsonValue)
      Creates a new AuthorizationDetails from the given JSON object.
      Parameters:
      jsonValue - the raw JSON object for this authorization details entry
      Throws:
      IllegalArgumentException - if jsonValue does not contain a non-blank type field
  • Method Details

    • getJsonValue

      public JsonValue getJsonValue()
      Returns the raw JSON object for this authorization details entry.
      Returns:
      the raw JSON object for this authorization details entry
    • getType

      public String getType()
      Returns the type field of this authorization details entry.
      Returns:
      the type string, never null nor blank