Package com.nimbusds.oauth2.sdk
Class RequestObjectPOSTSuccessResponse
java.lang.Object
com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
com.nimbusds.oauth2.sdk.RequestObjectPOSTSuccessResponse
- All Implemented Interfaces:
Message,Response,SuccessResponse
@Deprecated
@Immutable
public final class RequestObjectPOSTSuccessResponse
extends RequestObjectPOSTResponse
implements SuccessResponse
Deprecated.
Request object POST success response.
Example request object POST success response:
HTTP/1.1 201 Created
Date: Tue, 2 May 2017 15:22:31 GMT
Content-Type: application/json
{
"iss" : "https://c2id.com",
"aud" : "s6bhdrkqt3",
"request_uri" : "urn:requests:aashoo1Ooj6ahc5C",
"exp" : 1493738581
}
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
ConstructorsConstructorDescriptionRequestObjectPOSTSuccessResponse(Issuer iss, Audience aud, URI requestURI, Date exp) Deprecated.Creates a new request object POST success response. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the audience (the intended client ID).Deprecated.Returns the expiration time.Deprecated.Returns the issuer.Deprecated.Returns the request URI.booleanDeprecated.Checks if the response indicates success.parse(HTTPResponse httpResponse) Deprecated.Parses a request object POST success response from the specified HTTP response.parse(net.minidev.json.JSONObject jsonObject) Deprecated.Parses a request object POST success response from the specified JSON object.Deprecated.Returns the matching HTTP response.net.minidev.json.JSONObjectDeprecated.Returns a JSON object representation of this request object POST success response.Methods inherited from class com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
toErrorResponse, toSuccessResponse
-
Constructor Details
-
RequestObjectPOSTSuccessResponse
Deprecated.Creates a new request object POST success response.- Parameters:
iss- The issuer. Must not benull.aud- The audience (the intended client IDMust not benull.).requestURI- The request URI. Must not benull.exp- The request URI expiration time. Must not benull.
-
-
Method Details
-
getIssuer
Deprecated.Returns the issuer.- Returns:
- The issuer.
-
getAudience
Deprecated.Returns the audience (the intended client ID).- Returns:
- The audience.
-
getRequestURI
Deprecated.Returns the request URI.- Returns:
- The request URI.
-
getExpirationTime
Deprecated.Returns the expiration time.- Returns:
- The expiration time.
-
indicatesSuccess
Deprecated.Description copied from interface:ResponseChecks if the response indicates success.- Specified by:
indicatesSuccessin interfaceResponse- Returns:
trueif the response indicates success, elsefalse.
-
toJSONObject
Deprecated.Returns a JSON object representation of this request object POST success response.- Returns:
- The JSON object.
-
toHTTPResponse
Deprecated.Description copied from interface:ResponseReturns the matching HTTP response.- Specified by:
toHTTPResponsein interfaceResponse- Returns:
- The HTTP response.
-
parse
public static RequestObjectPOSTSuccessResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException Deprecated.Parses a request object POST success response from the specified JSON object.- Parameters:
jsonObject- The JSON object to parse. Must not benull.- Returns:
- The request object POST success response.
- Throws:
ParseException- If the JSON object couldn't be parsed to a request object POST success response.
-
parse
public static RequestObjectPOSTSuccessResponse parse(HTTPResponse httpResponse) throws ParseException Deprecated.Parses a request object POST success response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The request object POST success response.
- Throws:
ParseException- If the HTTP response couldn't be parsed to a request object POST success response.
-