类 OAuth2FormLoginAuthenticationFailureHandler

java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
cn.herodotus.engine.oauth2.authentication.response.OAuth2FormLoginAuthenticationFailureHandler
所有已实现的接口:
org.springframework.security.web.authentication.AuthenticationFailureHandler

public class OAuth2FormLoginAuthenticationFailureHandler extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler

Description : 表单登录失败处理器

作者:
: gengwei.zheng
另请参阅:
  • SimpleUrlAuthenticationFailureHandler
Date:
: 2020/1/26 18:08
  • 构造器详细资料

    • OAuth2FormLoginAuthenticationFailureHandler

      public OAuth2FormLoginAuthenticationFailureHandler()
    • OAuth2FormLoginAuthenticationFailureHandler

      public OAuth2FormLoginAuthenticationFailureHandler(String defaultFailureUrl)
  • 方法详细资料

    • onAuthenticationFailure

      public void onAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) throws IOException, jakarta.servlet.ServletException
      指定者:
      onAuthenticationFailure 在接口中 org.springframework.security.web.authentication.AuthenticationFailureHandler
      覆盖:
      onAuthenticationFailure 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
      抛出:
      IOException
      jakarta.servlet.ServletException
    • saveException

      protected final void saveException(jakarta.servlet.http.HttpServletRequest request, String message)
    • setDefaultFailureUrl

      public void setDefaultFailureUrl(String defaultFailureUrl)
      The URL which will be used as the failure destination.
      覆盖:
      setDefaultFailureUrl 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
      参数:
      defaultFailureUrl - the failure URL, for example "/loginFailed.jsp".
    • isUseForward

      protected boolean isUseForward()
      覆盖:
      isUseForward 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • setUseForward

      public void setUseForward(boolean forwardToDestination)
      If set to true, performs a forward to the failure destination URL instead of a redirect. Defaults to false.
      覆盖:
      setUseForward 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • getRedirectStrategy

      protected org.springframework.security.web.RedirectStrategy getRedirectStrategy()
      覆盖:
      getRedirectStrategy 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • setRedirectStrategy

      public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
      Allows overriding of the behaviour when redirecting to a target URL.
      覆盖:
      setRedirectStrategy 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • isAllowSessionCreation

      protected boolean isAllowSessionCreation()
      覆盖:
      isAllowSessionCreation 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
    • setAllowSessionCreation

      public void setAllowSessionCreation(boolean allowSessionCreation)
      覆盖:
      setAllowSessionCreation 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler