Class JSONErrorResponse

java.lang.Object
net.shibboleth.oidc.profile.messaging.JSONErrorResponse
All Implemented Interfaces:
ErrorResponse, Message, Response

public class JSONErrorResponse extends Object implements ErrorResponse
Class for creating JSON Error response for requests expecting JSON response.
Since:
2.2.0
  • Field Details

    • error

      private ErrorObject error
      Error object.
    • cacheControl

      private String cacheControl
      cache control value.
    • pragma

      private String pragma
      pragma value.
  • Constructor Details

    • JSONErrorResponse

      public JSONErrorResponse(@Nonnull ErrorObject errorObject)
      Constructor.
      Parameters:
      errorObject - error. MUST not be null.
    • JSONErrorResponse

      public JSONErrorResponse(@Nonnull ErrorObject errorObject, @Nullable String cacheControlValue, @Nullable String pragmaValue)
      Constructor.
      Parameters:
      errorObject - JSON content.
      cacheControlValue - cache control value.
      pragmaValue - pragma value.
  • Method Details