public class OAuth2FormLoginAuthenticationFailureHandler
extends org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
Description : 表单登录失败处理器
SimpleUrlAuthenticationFailureHandler| 构造器和说明 |
|---|
OAuth2FormLoginAuthenticationFailureHandler() |
OAuth2FormLoginAuthenticationFailureHandler(String defaultFailureUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.security.web.RedirectStrategy |
getRedirectStrategy() |
protected boolean |
isAllowSessionCreation() |
protected boolean |
isUseForward() |
void |
onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException e) |
protected void |
saveException(javax.servlet.http.HttpServletRequest request,
String message) |
void |
setAllowSessionCreation(boolean allowSessionCreation) |
void |
setDefaultFailureUrl(String defaultFailureUrl)
The URL which will be used as the failure destination.
|
void |
setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Allows overriding of the behaviour when redirecting to a target URL.
|
void |
setUseForward(boolean forwardToDestination)
If set to true, performs a forward to the failure destination URL instead
of a redirect.
|
public OAuth2FormLoginAuthenticationFailureHandler()
public OAuth2FormLoginAuthenticationFailureHandler(String defaultFailureUrl)
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException e)
throws IOException,
javax.servlet.ServletException
onAuthenticationFailure 在接口中 org.springframework.security.web.authentication.AuthenticationFailureHandleronAuthenticationFailure 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerIOExceptionjavax.servlet.ServletExceptionprotected final void saveException(javax.servlet.http.HttpServletRequest request,
String message)
public void setDefaultFailureUrl(String defaultFailureUrl)
setDefaultFailureUrl 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerdefaultFailureUrl - the failure URL, for example "/loginFailed.jsp".protected boolean isUseForward()
isUseForward 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerpublic void setUseForward(boolean forwardToDestination)
setUseForward 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerpublic void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
setRedirectStrategy 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerprotected org.springframework.security.web.RedirectStrategy getRedirectStrategy()
getRedirectStrategy 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerprotected boolean isAllowSessionCreation()
isAllowSessionCreation 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerpublic void setAllowSessionCreation(boolean allowSessionCreation)
setAllowSessionCreation 在类中 org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandlerCopyright © 2023 Dromara. All rights reserved.