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 ErrorObjectgetErrorObject()Deprecated.Gets the error associated with the error response.intgetHTTPStatusCode()Deprecated.booleanindicatesSuccess()Deprecated.Checks if the response indicates success.static RequestObjectPOSTErrorResponseparse(HTTPResponse httpResponse)Deprecated.Parses a request object POST error response from the specified HTTP response.HTTPResponsetoHTTPResponse()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:ErrorResponseGets the error associated with the error response.- Specified by:
getErrorObjectin interfaceErrorResponse- Returns:
- The error,
nullif none.
-
indicatesSuccess
public boolean indicatesSuccess()
Deprecated.Description copied from interface:ResponseChecks if the response indicates success.- Specified by:
indicatesSuccessin interfaceResponse- Returns:
trueif the response indicates success, elsefalse.
-
toHTTPResponse
public HTTPResponse toHTTPResponse()
Deprecated.Description copied from interface:ResponseReturns the matching HTTP response.- Specified by:
toHTTPResponsein 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.
-
-