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) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
AuthenticationFailureHandler |
getAuthenticationFailureHandler() |
AuthenticationManager |
getAuthenticationManager() |
AuthenticationSuccessHandler |
getAuthenticationSuccessHandler() |
String |
getPasswordParameter() |
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 |
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 |
setUsernameParameter(String usernameParameter) |
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 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 © 2015. All rights reserved.