Class JSONSuccessResponse

java.lang.Object
net.shibboleth.oidc.profile.messaging.JSONSuccessResponse
All Implemented Interfaces:
com.nimbusds.oauth2.sdk.Message, com.nimbusds.oauth2.sdk.Response, com.nimbusds.oauth2.sdk.SuccessResponse

public class JSONSuccessResponse extends Object implements com.nimbusds.oauth2.sdk.SuccessResponse
Class for creating JSON Success response.
Since:
2.2.0
  • Field Details

    • content

      private net.minidev.json.JSONObject content
      JSON content.
    • cacheControl

      private String cacheControl
      cache control value.
    • pragma

      private String pragma
      pragma value.
  • Constructor Details

    • JSONSuccessResponse

      public JSONSuccessResponse(@Nonnull net.minidev.json.JSONObject contentObject)
      Constructor.
      Parameters:
      contentObject - JSON content. MUST not be null.
    • JSONSuccessResponse

      public JSONSuccessResponse(@Nonnull net.minidev.json.JSONObject contentObject, @Nullable String cacheControlValue, @Nullable String pragmaValue)
      Constructor.
      Parameters:
      contentObject - JSON content
      cacheControlValue - cache control value
      pragmaValue - pragma value
  • Method Details

    • indicatesSuccess

      public boolean indicatesSuccess()
      Specified by:
      indicatesSuccess in interface com.nimbusds.oauth2.sdk.Response
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toHTTPResponse

      public com.nimbusds.oauth2.sdk.http.HTTPResponse toHTTPResponse()
      Specified by:
      toHTTPResponse in interface com.nimbusds.oauth2.sdk.Response