Class OAuth2AuthenticationFailureHandler

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

    @Component
    public class OAuth2AuthenticationFailureHandler
    extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • Field Summary

      • Fields inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler

        logger
    • 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)  
      • Methods inherited from class org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler

        getRedirectStrategy, isAllowSessionCreation, isUseForward, saveException, setAllowSessionCreation, setDefaultFailureUrl, setRedirectStrategy, setUseForward
    • Constructor Detail

      • OAuth2AuthenticationFailureHandler

        public OAuth2AuthenticationFailureHandler()
    • Method Detail

      • onAuthenticationFailure

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