public class LoginEndpoint
extends org.springframework.web.filter.GenericFilterBean
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SECURITY_FORM_PASSWORD_KEY |
static String |
SECURITY_FORM_USERNAME_KEY |
| 构造器和说明 |
|---|
LoginEndpoint() |
LoginEndpoint(RequestMatcher loginRequestMatcher) |
LoginEndpoint(String loginFilterProcessesUrl) |
public LoginEndpoint()
public LoginEndpoint(String loginFilterProcessesUrl)
loginFilterProcessesUrl - public LoginEndpoint(RequestMatcher loginRequestMatcher)
loginRequestMatcher - public void setLoginProcessesUrl(String loginFilterProcessesUrl)
public final void setLoginRequestMatcher(RequestMatcher loginRequestMatcher)
public String getUsernameParameter()
public void setUsernameParameter(String usernameParameter)
public String getPasswordParameter()
public void setPasswordParameter(String passwordParameter)
public boolean isPostOnly()
public void setPostOnly(boolean postOnly)
public AuthenticationSuccessHandler getAuthenticationSuccessHandler()
public void setAuthenticationSuccessHandler(AuthenticationSuccessHandler authenticationSuccessHandler)
public AuthenticationFailureHandler getAuthenticationFailureHandler()
public void setAuthenticationFailureHandler(AuthenticationFailureHandler authenticationFailureHandler)
public AuthenticationManager getAuthenticationManager()
public void setAuthenticationManager(AuthenticationManager authenticationManager)
public AuditCallback getAuditCallback()
public void setAuditCallback(AuditCallback auditCallback)
public final void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected String obtainUsername(javax.servlet.http.HttpServletRequest request)
protected String obtainPassword(javax.servlet.http.HttpServletRequest request)
protected boolean isLoginMatched(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanafterPropertiesSet 在类中 org.springframework.web.filter.GenericFilterBeanCopyright © 2016. All rights reserved.