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) (draft-ietf-oauth-jwsreq-17).
-
-
Constructor Summary
Constructors Constructor Description RequestObjectPOSTErrorResponse(int httpStatusCode)
Deprecated.Creates a new request object POST error response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ErrorObject
getErrorObject()
Deprecated.Gets the error associated with the error response.int
getHTTPStatusCode()
Deprecated.boolean
indicatesSuccess()
Deprecated.Checks if the response indicates success.static RequestObjectPOSTErrorResponse
parse(HTTPResponse httpResponse)
Deprecated.Parses a request object POST error response from the specified HTTP response.HTTPResponse
toHTTPResponse()
Deprecated.Returns the matching HTTP response.-
Methods inherited from class com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
RequestObjectPOSTErrorResponse
public RequestObjectPOSTErrorResponse(int httpStatusCode)
Deprecated.Creates a new request object POST error response.- Parameters:
httpStatusCode
- The HTTP status code. Should be other than 2xx.
-
-
Method Detail
-
getHTTPStatusCode
public int getHTTPStatusCode()
Deprecated.
-
getErrorObject
public ErrorObject 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
public boolean 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
public HTTPResponse toHTTPResponse()
Deprecated.Description copied from interface:Response
Returns the matching HTTP response.- Specified by:
toHTTPResponse
in interfaceResponse
- Returns:
- The HTTP response.
-
parse
public static RequestObjectPOSTErrorResponse parse(HTTPResponse httpResponse) throws ParseException
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.
-
-