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_CAPTCHA_ID_KEY |
static String |
SECURITY_FORM_CAPTCHA_RESPONSE_KEY |
static String |
SECURITY_FORM_PASSWORD_KEY |
static String |
SECURITY_FORM_USERNAME_KEY |
| Constructor and Description |
|---|
LoginEndpoint() |
LoginEndpoint(RequestMatcher loginRequestMatcher) |
LoginEndpoint(String loginFilterProcessesUrl) |
public static final String SECURITY_FORM_USERNAME_KEY
public static final String SECURITY_FORM_PASSWORD_KEY
public static final String SECURITY_FORM_CAPTCHA_ID_KEY
public static final String SECURITY_FORM_CAPTCHA_RESPONSE_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 String getCaptchaIdParameter()
public void setCaptchaIdParameter(String captchaIdParameter)
public String getCaptchaResponseParameter()
public void setCaptchaResponseParameter(String captchaResponseParameter)
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 FeatureConfigurer getFeatureConfigurer()
public void setFeatureConfigurer(FeatureConfigurer featureConfigurer)
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
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 String obtainCaptchaId(javax.servlet.http.HttpServletRequest request)
protected String obtainCaptchaResponse(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.