Package com.nimbusds.oauth2.sdk.ciba
Class CIBAErrorDelivery
java.lang.Object
com.nimbusds.oauth2.sdk.AbstractRequest
com.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.ciba.CIBAPushCallback
com.nimbusds.oauth2.sdk.ciba.CIBAErrorDelivery
CIBA error push delivery to the client notification endpoint.
Related specifications:
- OpenID Connect CIBA Flow - Core 1.0, section 12.
-
Constructor Summary
ConstructorsConstructorDescriptionCIBAErrorDelivery(URI endpoint, BearerAccessToken accessToken, AuthRequestID authRequestID, ErrorObject errorObject) Creates a new CIBA error push delivery. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error object.static Set<ErrorObject>Gets the standard OAuth 2.0 errors for a CIBA error delivery.booleanChecks if the callback indicates success.static CIBAErrorDeliveryparse(HTTPRequest httpRequest) Parses a CIBA error push delivery from the specified HTTP request.Returns the matching HTTP request.Methods inherited from class com.nimbusds.oauth2.sdk.ciba.CIBAPushCallback
getAuthRequestID, toErrorDelivery, toTokenDeliveryMethods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest
getAccessTokenMethods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getEndpointURI
-
Constructor Details
-
CIBAErrorDelivery
public CIBAErrorDelivery(URI endpoint, BearerAccessToken accessToken, AuthRequestID authRequestID, ErrorObject errorObject) Creates a new CIBA error push delivery.- 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.errorObject- The error object. Must not benull.
-
-
Method Details
-
getStandardErrors
Gets the standard OAuth 2.0 errors for a CIBA error delivery.- Returns:
- The standard errors, as a read-only set.
-
indicatesSuccess
Description copied from class:CIBAPushCallbackChecks if the callback indicates success.- Specified by:
indicatesSuccessin classCIBAPushCallback- Returns:
trueif the callback indicates success, elsefalse.
-
getErrorObject
Returns the error object.- Returns:
- The error object.
-
toHTTPRequest
Description copied from interface:RequestReturns the matching HTTP request.- Returns:
- The HTTP request.
-
parse
Parses a CIBA error push delivery from the specified HTTP request.- Parameters:
httpRequest- The HTTP request. Must not benull.- Returns:
- The CIBA error push delivery.
- Throws:
ParseException- If parsing failed.
-