Class DefaultExceptionMappingAuthenticationFailureHandler

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

    public class DefaultExceptionMappingAuthenticationFailureHandler
    extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • Constructor Detail

      • DefaultExceptionMappingAuthenticationFailureHandler

        public DefaultExceptionMappingAuthenticationFailureHandler()
    • Method Detail

      • onAuthenticationFailure

        public void onAuthenticationFailure​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            org.springframework.security.core.AuthenticationException exception)
                                     throws IOException,
                                            javax.servlet.ServletException
        Specified by:
        onAuthenticationFailure in interface org.springframework.security.web.authentication.AuthenticationFailureHandler
        Overrides:
        onAuthenticationFailure in class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
        Throws:
        IOException
        javax.servlet.ServletException
      • handleContextRefresh

        @EventListener
        public void handleContextRefresh​(org.springframework.context.event.ContextRefreshedEvent event)
      • getRootCauseException

        protected String getRootCauseException​(org.springframework.security.core.AuthenticationException exception)