Package com.nimbusds.oauth2.sdk
Class RequestObjectPOSTRequest
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.AbstractRequest
-
- com.nimbusds.oauth2.sdk.AbstractOptionallyAuthenticatedRequest
-
- com.nimbusds.oauth2.sdk.RequestObjectPOSTRequest
-
@Deprecated @Immutable public final class RequestObjectPOSTRequest extends AbstractOptionallyAuthenticatedRequest
Deprecated.Request object POST request.Example request object POST request:
POST /requests HTTP/1.1 Host: c2id.com Content-Type: application/jws Content-Length: 1288 eyJhbGciOiJSUzI1NiIsImtpZCI6ImsyYmRjIn0.ew0KICJpc3MiOiA (... abbreviated for brevity ...) zCYIb_NMXvtTIVc1jpspnTSD7xMbpL-2QgwUsAlMGzw
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 RequestObjectPOSTRequest(URI uri, com.nimbusds.jwt.JWT requestObject)
Deprecated.Creates a new request object POST request.RequestObjectPOSTRequest(URI uri, TLSClientAuthentication tlsClientAuth, net.minidev.json.JSONObject requestJSONObject)
Deprecated.Creates a new request object POST request where the parameters are submitted as plain JSON object, and the client authenticates by means of mutual TLS.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description net.minidev.json.JSONObject
getRequestJSONObject()
Deprecated.Returns the request object as plain JSON object.com.nimbusds.jwt.JWT
getRequestObject()
Deprecated.Returns the request object as JWT.TLSClientAuthentication
getTLSClientAuthentication()
Deprecated.Returns the mutual TLS client authentication.static RequestObjectPOSTRequest
parse(HTTPRequest httpRequest)
Deprecated.Parses a request object POST request from the specified HTTP request.HTTPRequest
toHTTPRequest()
Deprecated.Returns the matching HTTP request.-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractOptionallyAuthenticatedRequest
getClientAuthentication
-
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
-
-
-
Constructor Detail
-
RequestObjectPOSTRequest
public RequestObjectPOSTRequest(URI uri, com.nimbusds.jwt.JWT requestObject)
Deprecated.Creates a new request object POST request.- Parameters:
uri
- The URI of the request object endpoint. May benull
if thetoHTTPRequest()
method will not be used.requestObject
- The request object. Must not benull
.
-
RequestObjectPOSTRequest
public RequestObjectPOSTRequest(URI uri, TLSClientAuthentication tlsClientAuth, net.minidev.json.JSONObject requestJSONObject)
Deprecated.Creates a new request object POST request where the parameters are submitted as plain JSON object, and the client authenticates by means of mutual TLS. TLS also ensures the integrity and confidentiality of the request parameters. This method is not standard.- Parameters:
uri
- The URI of the request object endpoint. May benull
if thetoHTTPRequest()
method will not be used.tlsClientAuth
- The mutual TLS client authentication. Must not benull
.requestJSONObject
- The request parameters as plain JSON object. Must not benull
.
-
-
Method Detail
-
getRequestObject
public com.nimbusds.jwt.JWT getRequestObject()
Deprecated.Returns the request object as JWT.- Returns:
- The request object as JWT,
null
if the request parameters are specified asplain JSON object
instead.
-
getRequestJSONObject
public net.minidev.json.JSONObject getRequestJSONObject()
Deprecated.Returns the request object as plain JSON object.- Returns:
- The request parameters as plain JSON object,
null
if the request object is specified as aJWT
.
-
getTLSClientAuthentication
public TLSClientAuthentication getTLSClientAuthentication()
Deprecated.Returns the mutual TLS client authentication.- Returns:
- The mutual TLS client authentication.
-
toHTTPRequest
public HTTPRequest toHTTPRequest()
Deprecated.Description copied from interface:Request
Returns the matching HTTP request.- Returns:
- The HTTP request.
-
parse
public static RequestObjectPOSTRequest parse(HTTPRequest httpRequest) throws ParseException
Deprecated.Parses a request object POST request from the specified HTTP request.- Parameters:
httpRequest
- The HTTP request. Must not benull
.- Returns:
- The request object POST request.
- Throws:
ParseException
- If the HTTP request couldn't be parsed to a request object POST request.
-
-