Class CIBAPushCallback

    • Constructor Detail

      • 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 Detail

      • indicatesSuccess

        public abstract boolean indicatesSuccess()
        Checks if the callback indicates success.
        Returns:
        true if the callback indicates success, else false.
      • 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.