public class LoginEndpoint
extends org.springframework.web.filter.GenericFilterBean
implements org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered
| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_FORM_PASSWORD_KEY |
static String |
SECURITY_FORM_USERNAME_KEY |
| Constructor and Description |
|---|
LoginEndpoint() |
LoginEndpoint(RequestMatcher loginRequestMatcher) |
LoginEndpoint(String loginFilterProcessesUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
AuditCallback |
getAuditCallback() |
AuthenticationFailureHandler |
getAuthenticationFailureHandler() |
AuthenticationManager |
getAuthenticationManager() |
AuthenticationSuccessHandler |
getAuthenticationSuccessHandler() |
int |
getOrder() |
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 |
setOrder(int order) |
void |
setPasswordParameter(String passwordParameter) |
void |
setPostOnly(boolean postOnly) |
void |
setPreLoginHandler(PreLoginHandler preLoginHandler) |
void |
setUsernameParameter(String usernameParameter) |
public static final String SECURITY_FORM_USERNAME_KEY
public static final String SECURITY_FORM_PASSWORD_KEY
public LoginEndpoint()
public LoginEndpoint(String loginFilterProcessesUrl)
loginFilterProcessesUrl - public LoginEndpoint(RequestMatcher loginRequestMatcher)
loginRequestMatcher - public void setOrder(int order)
order - the order to setpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface 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 in interface 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 in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.web.filter.GenericFilterBeanCopyright © 2018. All rights reserved.