Package com.nimbusds.oauth2.sdk
Class RequestObjectPOSTErrorResponse
java.lang.Object
com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
com.nimbusds.oauth2.sdk.RequestObjectPOSTErrorResponse
- All Implemented Interfaces:
ErrorResponse
,Message
,Response
@Deprecated
@Immutable
public final class RequestObjectPOSTErrorResponse
extends RequestObjectPOSTResponse
implements ErrorResponse
Deprecated.
Request object POST error response.
Example request object POST error response indicating an invalid JWS signature:
HTTP/1.1 401 Unauthorized Date: Tue, 2 May 2017 15:22:31 GMT
Related specifications:
- Financial-grade API - Part 2: Read and Write API Security Profile, section 7.
- The OAuth 2.0 Authorization Framework: JWT Secured Authorization Request (JAR) (RFC 9101).
-
Constructor Summary
ConstructorDescriptionRequestObjectPOSTErrorResponse
(int httpStatusCode) Deprecated.Creates a new request object POST error response. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the error associated with the error response.int
Deprecated.boolean
Deprecated.Checks if the response indicates success.parse
(HTTPResponse httpResponse) Deprecated.Parses a request object POST error response from the specified HTTP response.Deprecated.Returns the matching HTTP response.Methods inherited from class com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
toErrorResponse, toSuccessResponse
-
Constructor Details
-
RequestObjectPOSTErrorResponse
Deprecated.Creates a new request object POST error response.- Parameters:
httpStatusCode
- The HTTP status code. Should be other than 2xx.
-
-
Method Details
-
getHTTPStatusCode
Deprecated. -
getErrorObject
Deprecated.Description copied from interface:ErrorResponse
Gets the error associated with the error response.- Specified by:
getErrorObject
in interfaceErrorResponse
- Returns:
- The error,
null
if none.
-
indicatesSuccess
Deprecated.Description copied from interface:Response
Checks if the response indicates success.- Specified by:
indicatesSuccess
in interfaceResponse
- Returns:
true
if the response indicates success, elsefalse
.
-
toHTTPResponse
Deprecated.Description copied from interface:Response
Returns the matching HTTP response.- Specified by:
toHTTPResponse
in interfaceResponse
- Returns:
- The HTTP response.
-
parse
Deprecated.Parses a request object POST error response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The request object POST error response.
- Throws:
ParseException
- If the HTTP response couldn't be parsed to a request object POST error response.
-