1 package org.itracker.web.security; 2 3 import org.slf4j.Logger; 4 import org.slf4j.LoggerFactory; 5 import org.springframework.security.core.AuthenticationException; 6 import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler; 7 8 import javax.servlet.ServletException; 9 import javax.servlet.http.HttpServletRequest; 10 import javax.servlet.http.HttpServletResponse; 11 import java.io.IOException; 12 13 public class AuthenticationErrorHandler extends SimpleUrlAuthenticationFailureHandler { 14 15 private static final Logger log = LoggerFactory.getLogger(AuthenticationErrorHandler.class); 16 @Override 17 public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { 18 super.onAuthenticationFailure(request, response, exception); 19 } 20 21 }