Class IridaPostAuthenticationFailureHandler

  • All Implemented Interfaces:
    org.springframework.security.web.authentication.AuthenticationFailureHandler

    @Component
    public class IridaPostAuthenticationFailureHandler
    extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    AuthenticationFailureHandler used to handle specific AuthenticationException's. This handler will handle the exception or defer to default handling from SimpleUrlAuthenticationFailureHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception)
      Custom authentication failure handling for specific AuthenticationException's otherwise default to SimpleUrlAuthenticationFailureHandler behaviour.
      • Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler

        getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IridaPostAuthenticationFailureHandler

        @Autowired
        public IridaPostAuthenticationFailureHandler​(PasswordResetService resetService,
                                                     UserService userService)
    • Method Detail

      • onAuthenticationFailure

        public void onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.security.core.AuthenticationException exception)
                                     throws java.io.IOException,
                                            javax.servlet.ServletException
        Custom authentication failure handling for specific AuthenticationException's otherwise default to SimpleUrlAuthenticationFailureHandler behaviour.
        Specified by:
        onAuthenticationFailure in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
        Overrides:
        onAuthenticationFailure in class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
        Throws:
        java.io.IOException
        javax.servlet.ServletException