public interface AuthenticationFailureHandler
Typical behaviour might be to redirect the user to the authentication page (in the case
of a form login) to allow them to try again. More sophisticated logic might be
implemented depending on the type of the exception. For example, a
CredentialsExpiredException might cause a redirect to a web controller which
allowed the user to change their password.
void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthenticationException exception) throws IOException, javax.servlet.ServletException
request- the request during which the authentication attempt occurred.
response- the response.
exception- the exception which was thrown to reject the authentication request.