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
FieldsModifier and TypeFieldDescriptionprivate StringDeprecated, for removal: This API element is subject to removal in a future version.cache control value.private com.nimbusds.oauth2.sdk.ErrorObjectDeprecated, for removal: This API element is subject to removal in a future version.Error object.private StringDeprecated, for removal: This API element is subject to removal in a future version.pragma value. -
Constructor Summary
ConstructorsConstructorDescriptionJSONErrorResponse(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 TypeMethodDescriptionprivate StringDeprecated, for removal: This API element is subject to removal in a future version.Error content as json.com.nimbusds.oauth2.sdk.ErrorObjectDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.com.nimbusds.oauth2.sdk.http.HTTPResponseDeprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
error
private com.nimbusds.oauth2.sdk.ErrorObject errorDeprecated, for removal: This API element is subject to removal in a future version.Error object. -
cacheControl
Deprecated, for removal: This API element is subject to removal in a future version.cache control value. -
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:
indicatesSuccessin interfacecom.nimbusds.oauth2.sdk.Response
-
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:
toHTTPResponsein interfacecom.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:
getErrorObjectin interfacecom.nimbusds.oauth2.sdk.ErrorResponse
-