Class JSONErrorResponse

java.lang.Object
net.shibboleth.idp.plugin.oidc.op.messaging.JSONErrorResponse
All Implemented Interfaces:
com.nimbusds.oauth2.sdk.ErrorResponse, com.nimbusds.oauth2.sdk.Message, com.nimbusds.oauth2.sdk.Response

@Deprecated(since="4.2.0", forRemoval=true) public class JSONErrorResponse extends Object implements com.nimbusds.oauth2.sdk.ErrorResponse
Deprecated, for removal: This API element is subject to removal in a future version.
Class for creating JSON Error response for requests expecting JSON response.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
    cache control value.
    private com.nimbusds.oauth2.sdk.ErrorObject
    Deprecated, for removal: This API element is subject to removal in a future version.
    Error object.
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
    pragma value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JSONErrorResponse(com.nimbusds.oauth2.sdk.ErrorObject errorObject)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
    JSONErrorResponse(com.nimbusds.oauth2.sdk.ErrorObject errorObject, String cacheControlValue, String pragmaValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    private String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Error content as json.
    com.nimbusds.oauth2.sdk.ErrorObject
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    com.nimbusds.oauth2.sdk.http.HTTPResponse
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • error

      private com.nimbusds.oauth2.sdk.ErrorObject error
      Deprecated, for removal: This API element is subject to removal in a future version.
      Error object.
    • cacheControl

      private String cacheControl
      Deprecated, for removal: This API element is subject to removal in a future version.
      cache control value.
    • pragma

      private String pragma
      Deprecated, for removal: This API element is subject to removal in a future version.
      pragma value.
  • Constructor Details

    • JSONErrorResponse

      public JSONErrorResponse(@Nonnull com.nimbusds.oauth2.sdk.ErrorObject errorObject)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      errorObject - error. MUST not be null.
    • JSONErrorResponse

      public JSONErrorResponse(@Nonnull com.nimbusds.oauth2.sdk.ErrorObject errorObject, @Nullable String cacheControlValue, @Nullable String pragmaValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      errorObject - JSON content.
      cacheControlValue - cache control value.
      pragmaValue - pragma value.
  • Method Details

    • indicatesSuccess

      public boolean indicatesSuccess()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      indicatesSuccess in interface com.nimbusds.oauth2.sdk.Response
    • getContent

      private String getContent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Error content as json.
      Returns:
      error as json.
    • toHTTPResponse

      public com.nimbusds.oauth2.sdk.http.HTTPResponse toHTTPResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toHTTPResponse in interface com.nimbusds.oauth2.sdk.Response
    • getErrorObject

      public com.nimbusds.oauth2.sdk.ErrorObject getErrorObject()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getErrorObject in interface com.nimbusds.oauth2.sdk.ErrorResponse