类 OAuth2FormLoginAuthenticationFailureHandler
java.lang.Object
org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler
cn.herodotus.engine.oauth2.authorization.authentication.OAuth2FormLoginAuthenticationFailureHandler
- 所有已实现的接口:
AuthenticationFailureHandler
public class OAuth2FormLoginAuthenticationFailureHandler
extends 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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) protected final voidsaveException(javax.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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException e) throws IOException, javax.servlet.ServletException - 指定者:
onAuthenticationFailure在接口中AuthenticationFailureHandler- 覆盖:
onAuthenticationFailure在类中SimpleUrlAuthenticationFailureHandler- 抛出:
IOExceptionjavax.servlet.ServletException
-
saveException
-
setDefaultFailureUrl
The URL which will be used as the failure destination.- 覆盖:
setDefaultFailureUrl在类中SimpleUrlAuthenticationFailureHandler- 参数:
defaultFailureUrl- the failure URL, for example "/loginFailed.jsp".
-
isUseForward
protected boolean isUseForward() -
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. -
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy) Allows overriding of the behaviour when redirecting to a target URL. -
getRedirectStrategy
protected org.springframework.security.web.RedirectStrategy getRedirectStrategy() -
isAllowSessionCreation
protected boolean isAllowSessionCreation() -
setAllowSessionCreation
public void setAllowSessionCreation(boolean allowSessionCreation)
-