类 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
- 另请参阅:
- Date:
- : 2020/1/26 18:08
-
字段概要
从类继承的字段 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected org.springframework.security.web.RedirectStrategyprotected booleanprotected booleanvoidonAuthenticationFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) protected final voidsaveException(jakarta.servlet.http.HttpServletRequest request, String message) voidsetAllowSessionCreation(boolean allowSessionCreation) voidsetDefaultFailureUrl(String defaultFailureUrl) The URL which will be used as the failure destination.voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy) Allows overriding of the behaviour when redirecting to a target URL.voidsetUseForward(boolean forwardToDestination) If set to true, performs a forward to the failure destination URL instead of a redirect.从类继承的方法 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
saveException
-
构造器详细资料
-
OAuth2FormLoginAuthenticationFailureHandler
public OAuth2FormLoginAuthenticationFailureHandler() -
OAuth2FormLoginAuthenticationFailureHandler
-
-
方法详细资料
-
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- 抛出:
IOExceptionjakarta.servlet.ServletException
-
saveException
-
setDefaultFailureUrl
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
-