Class DelegatingAuthenticationFailureHandler

java.lang.Object
org.springframework.security.web.authentication.DelegatingAuthenticationFailureHandler
All Implemented Interfaces:
AuthenticationFailureHandler

public class DelegatingAuthenticationFailureHandler extends Object implements AuthenticationFailureHandler
An AuthenticationFailureHandler that delegates to other AuthenticationFailureHandler instances based upon the type of AuthenticationException passed into onAuthenticationFailure(HttpServletRequest, HttpServletResponse, AuthenticationException) .
Since:
4.0
  • Constructor Details

  • Method Details

    • onAuthenticationFailure

      public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) throws IOException, jakarta.servlet.ServletException
      Description copied from interface: AuthenticationFailureHandler
      Called when an authentication attempt fails.
      Specified by:
      onAuthenticationFailure in interface AuthenticationFailureHandler
      Parameters:
      request - the request during which the authentication attempt occurred.
      response - the response.
      exception - the exception which was thrown to reject the authentication request.
      Throws:
      IOException
      jakarta.servlet.ServletException