Class CIBAResponse

java.lang.Object
com.nimbusds.oauth2.sdk.ciba.CIBAResponse
All Implemented Interfaces:
Message, Response
Direct Known Subclasses:
CIBAErrorResponse, CIBARequestAcknowledgement

public abstract class CIBAResponse extends Object implements Response
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 Details

  • 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

      public static CIBAResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException
      Parses a CIBA response from the specified JSON object.
      Parameters:
      jsonObject - The JSON object to parse. Must not be null.
      Returns:
      The CIBA response.
      Throws:
      ParseException - If parsing failed.
    • parse

      public static CIBAResponse parse(HTTPResponse httpResponse) throws ParseException
      Parses a CIBA response from the specified HTTP response.
      Parameters:
      httpResponse - The HTTP response. Must not be null.
      Returns:
      The CIBA response.
      Throws:
      ParseException - If parsing failed.