Package org.forgerock.http.oauth2
Class AuthorizationDetails
java.lang.Object
org.forgerock.http.oauth2.AuthorizationDetails
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 Summary
ConstructorsConstructorDescriptionAuthorizationDetails(JsonValue jsonValue) Creates a newAuthorizationDetailsfrom the given JSON object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the raw JSON object for this authorization details entry.getType()Returns thetypefield of this authorization details entry.
-
Constructor Details
-
AuthorizationDetails
Creates a newAuthorizationDetailsfrom the given JSON object.- Parameters:
jsonValue- the raw JSON object for this authorization details entry- Throws:
IllegalArgumentException- ifjsonValuedoes not contain a non-blanktypefield
-
-
Method Details
-
getJsonValue
Returns the raw JSON object for this authorization details entry.- Returns:
- the raw JSON object for this authorization details entry
-
getType
Returns thetypefield of this authorization details entry.- Returns:
- the type string, never
nullnor blank
-