Class CIBAPushCallback

All Implemented Interfaces:
Message, Request
Direct Known Subclasses:
CIBAErrorDelivery, CIBATokenDelivery

public abstract class CIBAPushCallback extends ProtectedResourceRequest
CIBA push callback to the client notification endpoint.

Related specifications:

  • OpenID Connect CIBA Flow - Core 1.0, section 12.3.
  • Constructor Details

    • CIBAPushCallback

      public CIBAPushCallback(URI endpoint, BearerAccessToken accessToken, AuthRequestID authRequestID)
      Creates a new CIBA push callback.
      Parameters:
      endpoint - The client notification endpoint. Must not be null.
      accessToken - The client notification token. Must not be null.
      authRequestID - The CIBA request ID. Must not be null.
  • Method Details

    • indicatesSuccess

      public abstract boolean indicatesSuccess()
      Checks if the callback indicates success.
      Returns:
      true if the callback indicates success, else false.
    • getAuthRequestID

      Returns the CIBA request ID.
      Returns:
      The CIBA request ID.
    • toTokenDelivery

      Casts this CIBA push callback to token delivery.
      Returns:
      The CIBA token push delivery.
    • toErrorDelivery

      Casts this CIBA push callback to an error delivery.
      Returns:
      The CIBA error push delivery.
    • parse

      public static CIBAPushCallback parse(HTTPRequest httpRequest) throws ParseException
      Parses a CIBA push callback from the specified HTTP request.
      Parameters:
      httpRequest - The HTTP request. Must not be null.
      Returns:
      The CIBA token or error push delivery.
      Throws:
      ParseException - If the HTTP request couldn't be parsed to a CIBA push callback.