Package com.nimbusds.oauth2.sdk.client
Class ClientDeleteRequest
java.lang.Object
com.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.client.ClientDeleteRequest
Client delete request.
Example HTTP request:
DELETE /register/s6BhdRkqt3 HTTP/1.1 Accept: application/json Host: server.example.com Authorization: Bearer reg-23410913-abewfq.123483
Related specifications:
- OAuth 2.0 Dynamic Client Registration Management Protocol (RFC 7592)
-
Constructor Summary
ConstructorsConstructorDescriptionClientDeleteRequest
(URI endpoint, BearerAccessToken accessToken) Creates a new client delete request. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientDeleteRequest
parse
(HTTPRequest httpRequest) Parses a client delete request from the specified HTTP DELETE request.Returns the matching HTTP request.Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest
getAccessToken
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
Constructor Details
-
ClientDeleteRequest
Creates a new client delete request.- Parameters:
endpoint
- The URI of the client configuration endpoint. May benull
if thetoHTTPRequest()
method is not going to be used.accessToken
- An OAuth 2.0 Bearer access token for the request,null
if none.
-
-
Method Details
-
toHTTPRequest
Description copied from interface:Request
Returns the matching HTTP request.- Returns:
- The HTTP request.
-
parse
Parses a client delete request from the specified HTTP DELETE request.- Parameters:
httpRequest
- The HTTP request. Must not benull
.- Returns:
- The client add (register) request.
- Throws:
ParseException
- If the HTTP request couldn't be parsed to a client delete request.
-