Class RequestObjectPOSTSuccessResponse

  • All Implemented Interfaces:
    Message, Response, SuccessResponse

    @Deprecated
    @Immutable
    public final class RequestObjectPOSTSuccessResponse
    extends RequestObjectPOSTResponse
    implements SuccessResponse
    Deprecated.
    Request object POST success response.

    Example request object POST success response:

     HTTP/1.1 201 Created
     Date: Tue, 2 May 2017 15:22:31 GMT
     Content-Type: application/json
    
     {
       "iss"         : "https://c2id.com",
       "aud"         : "s6bhdrkqt3",
       "request_uri" : "urn:requests:aashoo1Ooj6ahc5C",
       "exp"         : 1493738581
     }
     

    Related specifications:

    • Financial-grade API - Part 2: Read and Write API Security Profile, section 7.
    • The OAuth 2.0 Authorization Framework: JWT Secured Authorization Request (JAR) (RFC 9101).
    • Constructor Detail

      • RequestObjectPOSTSuccessResponse

        public RequestObjectPOSTSuccessResponse​(Issuer iss,
                                                Audience aud,
                                                URI requestURI,
                                                Date exp)
        Deprecated.
        Creates a new request object POST success response.
        Parameters:
        iss - The issuer. Must not be null.
        aud - The audience (the intended client IDMust not be null.).
        requestURI - The request URI. Must not be null.
        exp - The request URI expiration time. Must not be null.
    • Method Detail

      • getIssuer

        public Issuer getIssuer()
        Deprecated.
        Returns the issuer.
        Returns:
        The issuer.
      • getAudience

        public Audience getAudience()
        Deprecated.
        Returns the audience (the intended client ID).
        Returns:
        The audience.
      • getRequestURI

        public URI getRequestURI()
        Deprecated.
        Returns the request URI.
        Returns:
        The request URI.
      • getExpirationTime

        public Date getExpirationTime()
        Deprecated.
        Returns the expiration time.
        Returns:
        The expiration time.
      • indicatesSuccess

        public boolean indicatesSuccess()
        Deprecated.
        Description copied from interface: Response
        Checks if the response indicates success.
        Specified by:
        indicatesSuccess in interface Response
        Returns:
        true if the response indicates success, else false.
      • toJSONObject

        public net.minidev.json.JSONObject toJSONObject()
        Deprecated.
        Returns a JSON object representation of this request object POST success response.
        Returns:
        The JSON object.
      • parse

        public static RequestObjectPOSTSuccessResponse parse​(net.minidev.json.JSONObject jsonObject)
                                                      throws ParseException
        Deprecated.
        Parses a request object POST success response from the specified JSON object.
        Parameters:
        jsonObject - The JSON object to parse. Must not be null.
        Returns:
        The request object POST success response.
        Throws:
        ParseException - If the JSON object couldn't be parsed to a request object POST success response.
      • parse

        public static RequestObjectPOSTSuccessResponse parse​(HTTPResponse httpResponse)
                                                      throws ParseException
        Deprecated.
        Parses a request object POST success response from the specified HTTP response.
        Parameters:
        httpResponse - The HTTP response. Must not be null.
        Returns:
        The request object POST success response.
        Throws:
        ParseException - If the HTTP response couldn't be parsed to a request object POST success response.