Package com.nimbusds.oauth2.sdk.ciba
Class CIBAPingCallback
java.lang.Object
com.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.ciba.CIBAPingCallback
CIBA ping callback to a client notification endpoint.
Example HTTP request:
POST /cb HTTP/1.1
Host: client.example.com
Authorization: Bearer 8d67dc78-7faa-4d41-aabd-67707b374255
Content-Type: application/json
{
"auth_req_id": "1c266114-a1be-4252-8ad1-04986c5b9ac1"
}
Related specifications:
- OpenID Connect CIBA Flow - Core 1.0, section 10.2
-
Constructor Summary
ConstructorsConstructorDescriptionCIBAPingCallback(URI endpoint, BearerAccessToken accessToken, AuthRequestID authRequestID) Creates a new CIBA ping callback. -
Method Summary
Modifier and TypeMethodDescriptionReturns the CIBA request ID.static CIBAPingCallbackparse(HTTPRequest httpRequest) Parses a CIBA ping callback from the specified HTTP request.Returns the matching HTTP request.Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest
getAccessTokenMethods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
Constructor Details
-
CIBAPingCallback
Creates a new CIBA ping callback.- Parameters:
endpoint- The client notification endpoint. Must not benull.accessToken- The client notification token. Must not benull.authRequestID- The CIBA request ID. Must not benull.
-
-
Method Details
-
getAuthRequestID
Returns the CIBA request ID.- Returns:
- The CIBA request ID.
-
toHTTPRequest
Description copied from interface:RequestReturns the matching HTTP request.- Returns:
- The HTTP request.
-
parse
Parses a CIBA ping callback from the specified HTTP request.- Parameters:
httpRequest- The HTTP request. Must not benull.- Returns:
- The CIBA ping callback.
- Throws:
ParseException- If parsing failed.
-