public class OAuthPolicyErrorHandlingCallback extends Object implements ErrorHandlingCallback
| Constructor and Description |
|---|
OAuthPolicyErrorHandlingCallback(ErrorHandlerConfiguration errorHandlerConfiguration,
TemplateRenderer renderer,
Set<String> scopes,
String error,
String errorDescription,
String errorUri)
Creates a new OAuthPolicyErrorHandlingCallback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeErrorResponse(Exchange exchange)
This method implements writing responses when errors are encountered.
|
public OAuthPolicyErrorHandlingCallback(ErrorHandlerConfiguration errorHandlerConfiguration, TemplateRenderer renderer, Set<String> scopes, String error, String errorDescription, String errorUri)
errorHandlerConfiguration - the configuration for the response code, status message, content type, and
template, must not be nullrenderer - the TemplateRenderer, must not be nullscopes - the required scopes to add to the WWW-Authenticate header, must not be nullerror - the error as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullerrorDescription - the error_description as outlined in RFC6750 to add to the WWW-Authenticate header, can
be nullerrorUri - the error_uri as outlined in RFC6750 to add to the WWW-Authenticate header, can be nullpublic void writeErrorResponse(Exchange exchange) throws IOException
ErrorHandlingCallbackwriteErrorResponse in interface ErrorHandlingCallbackexchange - The exchange to read from and modify.IOException - Indicates when issues are encountered.Copyright 2023 Ping Identity Corp. All rights reserved.