Package com.nimbusds.oauth2.sdk
Class PushedAuthorizationResponse
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.PushedAuthorizationResponse
-
- Direct Known Subclasses:
PushedAuthorizationErrorResponse
,PushedAuthorizationSuccessResponse
public abstract class PushedAuthorizationResponse extends Object implements Response
Pushed authorisation response.Related specifications:
- OAuth 2.0 Pushed Authorization Requests (draft-lodderstedt-oauth-par-01)
-
-
Constructor Summary
Constructors Constructor Description PushedAuthorizationResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PushedAuthorizationResponse
parse(HTTPResponse httpResponse)
Parses a pushed authorisation response from the specified HTTP response.PushedAuthorizationErrorResponse
toErrorResponse()
Casts this response to a pushed authorisation error response.PushedAuthorizationSuccessResponse
toSuccessResponse()
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 Detail
-
PushedAuthorizationResponse
public PushedAuthorizationResponse()
-
-
Method Detail
-
toSuccessResponse
public PushedAuthorizationSuccessResponse toSuccessResponse()
Casts this response to a pushed authorisation success response.- Returns:
- The pushed authorisation success response.
-
toErrorResponse
public PushedAuthorizationErrorResponse toErrorResponse()
Casts this response to a pushed authorisation error response.- Returns:
- The pushed authorisation error response.
-
parse
public static PushedAuthorizationResponse parse(HTTPResponse httpResponse) throws ParseException
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.
-
-