From ae47fb722d0cd1f9c8008792274d193448716ef7 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sun, 20 Mar 2005 19:12:51 +0000 Subject: [PATCH] sendError now returns less informative forbidden message rather than the exception message. --- .../acegisecurity/ui/x509/X509ProcessingFilterEntryPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/acegisecurity/ui/x509/X509ProcessingFilterEntryPoint.java b/core/src/main/java/org/acegisecurity/ui/x509/X509ProcessingFilterEntryPoint.java index 3b9fde1921..0d3954c887 100644 --- a/core/src/main/java/org/acegisecurity/ui/x509/X509ProcessingFilterEntryPoint.java +++ b/core/src/main/java/org/acegisecurity/ui/x509/X509ProcessingFilterEntryPoint.java @@ -57,6 +57,6 @@ public class X509ProcessingFilterEntryPoint implements AuthenticationEntryPoint public void commence(ServletRequest request, ServletResponse response, AuthenticationException authException) throws IOException, ServletException { logger.debug("X509 entry point called. Rejecting access"); HttpServletResponse httpResponse = (HttpServletResponse)response; - httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage()); + httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "Access Denied"); } }