Package com.nimbusds.oauth2.sdk
Class PushedAuthorizationResponse
java.lang.Object
com.nimbusds.oauth2.sdk.PushedAuthorizationResponse
- Direct Known Subclasses:
PushedAuthorizationErrorResponse
,PushedAuthorizationSuccessResponse
Pushed authorisation response.
Related specifications:
- OAuth 2.0 Pushed Authorization Requests (RFC 9126)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PushedAuthorizationResponse
parse
(HTTPResponse httpResponse) Parses a pushed authorisation response from the specified HTTP response.Casts this response to a pushed authorisation error response.Casts this response to a pushed authorisation success response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
Constructor Details
-
PushedAuthorizationResponse
public PushedAuthorizationResponse()
-
-
Method Details
-
toSuccessResponse
Casts this response to a pushed authorisation success response.- Returns:
- The pushed authorisation success response.
-
toErrorResponse
Casts this response to a pushed authorisation error response.- Returns:
- The pushed authorisation error response.
-
parse
Parses a pushed authorisation response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The pushed authorisation success or error response.
- Throws:
ParseException
- If the HTTP response couldn't be parsed to a pushed authorisation response.
-