Class TrustNegotiationSuccessResponse

java.lang.Object
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationResponse
com.nimbusds.openid.connect.sdk.federation.api.TrustNegotiationSuccessResponse
All Implemented Interfaces:
Message, Response

Trust negotiation success response.

Related specifications:

  • OpenID Connect Federation 1.0, section 6.2.2.
  • Constructor Details

    • TrustNegotiationSuccessResponse

      public TrustNegotiationSuccessResponse(net.minidev.json.JSONObject metadata)
      Creates a new trust negotiation success response.
      Parameters:
      metadata - The metadata JSON object for the requested metadata type. Must not be null.
  • Method Details

    • getMetadataJSONObject

      public net.minidev.json.JSONObject getMetadataJSONObject()
      Returns metadata JSON object for the requested metadata type.
      Returns:
      The metadata JSON object.
    • indicatesSuccess

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

      Description copied from interface: Response
      Returns the matching HTTP response.
      Returns:
      The HTTP response.
    • parse

      Parses a trust negotiation success response from the specified HTTP response.
      Parameters:
      httpResponse - The HTTP response. Must not be null.
      Returns:
      The trust negotiation success response.
      Throws:
      ParseException - If parsing failed.