sendError now returns less informative forbidden message rather than the exception message.

This commit is contained in:
Luke Taylor 2005-03-20 19:12:51 +00:00
parent 602b1473c5
commit ae47fb722d
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}