Package com.nimbusds.oauth2.sdk.ciba
Class CIBAResponse
java.lang.Object
com.nimbusds.oauth2.sdk.ciba.CIBAResponse
- Direct Known Subclasses:
CIBAErrorResponse
,CIBARequestAcknowledgement
CIBA response from an OpenID provider / OAuth 2.0 authorisation server
backend authentication endpoint.
Related specifications:
- OpenID Connect CIBA Flow - Core 1.0, section 7.3 and 13.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CIBAResponse
parse
(HTTPResponse httpResponse) Parses a CIBA response from the specified HTTP response.static CIBAResponse
parse
(net.minidev.json.JSONObject jsonObject) Parses a CIBA response from the specified JSON object.Casts this response to a CIBA error response.Casts this response to a successful CIBA request acknowledgement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
Constructor Details
-
CIBAResponse
public CIBAResponse()
-
-
Method Details
-
toRequestAcknowledgement
Casts this response to a successful CIBA request acknowledgement.- Returns:
- The CIBA request acknowledgement.
-
toErrorResponse
Casts this response to a CIBA error response.- Returns:
- The CIBA error response.
-
parse
Parses a CIBA response from the specified JSON object.- Parameters:
jsonObject
- The JSON object to parse. Must not benull
.- Returns:
- The CIBA response.
- Throws:
ParseException
- If parsing failed.
-
parse
Parses a CIBA response from the specified HTTP response.- Parameters:
httpResponse
- The HTTP response. Must not benull
.- Returns:
- The CIBA response.
- Throws:
ParseException
- If parsing failed.
-