public class LoginEndpoint
extends org.springframework.web.filter.GenericFilterBean
implements org.springframework.context.ApplicationContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SECURITY_FORM_PASSWORD_KEY |
static String |
SECURITY_FORM_USERNAME_KEY |
| 构造器和说明 |
|---|
LoginEndpoint() |
LoginEndpoint(RequestMatcher loginRequestMatcher) |
LoginEndpoint(String loginFilterProcessesUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
AuditCallback |
getAuditCallback() |
AuthenticationFailureHandler |
getAuthenticationFailureHandler() |
AuthenticationManager |
getAuthenticationManager() |
AuthenticationSuccessHandler |
getAuthenticationSuccessHandler() |
String |
getPasswordParameter() |
PreLoginHandler |
getPreLoginHandler() |
String |
getUsernameParameter() |
protected boolean |
isLoginMatched(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isPostOnly() |
protected String |
obtainPassword(javax.servlet.http.HttpServletRequest request) |
protected String |
obtainUsername(javax.servlet.http.HttpServletRequest request) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuditCallback(AuditCallback auditCallback) |
void |
setAuthenticationFailureHandler(AuthenticationFailureHandler authenticationFailureHandler) |
void |
setAuthenticationManager(AuthenticationManager authenticationManager) |
void |
setAuthenticationSuccessHandler(AuthenticationSuccessHandler authenticationSuccessHandler) |
void |
setLoginProcessesUrl(String loginFilterProcessesUrl) |
void |
setLoginRequestMatcher(RequestMatcher loginRequestMatcher) |
void |
setPasswordParameter(String passwordParameter) |
void |
setPostOnly(boolean postOnly) |
void |
setPreLoginHandler(PreLoginHandler preLoginHandler) |
void |
setUsernameParameter(String usernameParameter) |
public LoginEndpoint()
public LoginEndpoint(String loginFilterProcessesUrl)
loginFilterProcessesUrl - public LoginEndpoint(RequestMatcher loginRequestMatcher)
loginRequestMatcher - public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareapplicationContext - public void setLoginProcessesUrl(String loginFilterProcessesUrl)
loginFilterProcessesUrl - public final void setLoginRequestMatcher(RequestMatcher loginRequestMatcher)
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 PreLoginHandler getPreLoginHandler()
public void setPreLoginHandler(PreLoginHandler preLoginHandler)
public final void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
IOException
doFilter 在接口中 javax.servlet.Filterjavax.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.