SEC-2805: Remove unnecessary cast in Http403ForbiddenEntryPoint

This commit is contained in:
Rob Winch 2015-03-10 10:58:21 -05:00
parent 5e2720723a
commit b04388ad62
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ public class Http403ForbiddenEntryPoint implements AuthenticationEntryPoint {
if (logger.isDebugEnabled()) {
logger.debug("Pre-authenticated entry point called. Rejecting access");
}
HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "Access Denied");
response.sendError(HttpServletResponse.SC_FORBIDDEN, "Access Denied");
}