Class ConfigAwareAuthenticationFailureHandler

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

    public class ConfigAwareAuthenticationFailureHandler
    extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    Extension of SimpleUrlAuthenticationFailureHandler that uses site config to override properties
    Since:
    3.1.5
    Author:
    joseross
    • Constructor Detail

      • ConfigAwareAuthenticationFailureHandler

        public ConfigAwareAuthenticationFailureHandler()
    • Method Detail

      • determineFailureUrl

        protected String determineFailureUrl()
      • setDefaultFailureUrl

        public void setDefaultFailureUrl​(String defaultFailureUrl)
        Overrides:
        setDefaultFailureUrl in class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
      • 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