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
Constructors Constructor Description RequestObjectPOSTSuccessResponse(Issuer iss, Audience aud, URI requestURI, Date exp)
Deprecated.Creates a new request object POST success response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Audience
getAudience()
Deprecated.Returns the audience (the intended client ID).Date
getExpirationTime()
Deprecated.Returns the expiration time.Issuer
getIssuer()
Deprecated.Returns the issuer.URI
getRequestURI()
Deprecated.Returns the request URI.boolean
indicatesSuccess()
Deprecated.Checks if the response indicates success.static RequestObjectPOSTSuccessResponse
parse(HTTPResponse httpResponse)
Deprecated.Parses a request object POST success response from the specified HTTP response.static RequestObjectPOSTSuccessResponse
parse(net.minidev.json.JSONObject jsonObject)
Deprecated.Parses a request object POST success response from the specified JSON object.HTTPResponse
toHTTPResponse()
Deprecated.Returns the matching HTTP response.net.minidev.json.JSONObject
toJSONObject()
Deprecated.Returns a JSON object representation of this request object POST success response.-
Methods inherited from class com.nimbusds.oauth2.sdk.RequestObjectPOSTResponse
toErrorResponse, toSuccessResponse
-
-
-
-
Constructor Detail
-
RequestObjectPOSTSuccessResponse
public RequestObjectPOSTSuccessResponse(Issuer iss, Audience aud, URI requestURI, Date exp)
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 Detail
-
getAudience
public Audience getAudience()
Deprecated.Returns the audience (the intended client ID).- Returns:
- The audience.
-
getRequestURI
public URI getRequestURI()
Deprecated.Returns the request URI.- Returns:
- The request URI.
-
getExpirationTime
public Date getExpirationTime()
Deprecated.Returns the expiration time.- Returns:
- The expiration time.
-
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
.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Deprecated.Returns a JSON object representation of this request object POST success response.- Returns:
- The JSON object.
-
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 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.
-
-