public class VanasUserLoginAuthenticationFilter
extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
| 构造器和说明 |
|---|
VanasUserLoginAuthenticationFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
obtainPassword(javax.servlet.http.HttpServletRequest request)
Enables subclasses to override the composition of the password, such as by including additional values
and a separator.
|
protected String |
obtainUsername(javax.servlet.http.HttpServletRequest request)
Enables subclasses to override the composition of the username, such as by including additional values
and a separator.
|
protected String |
obtainVcid(javax.servlet.http.HttpServletRequest request) |
protected void |
setDetails(javax.servlet.http.HttpServletRequest request,
VanasUserLoginAuthenticationToken authRequest)
Provided so that subclasses may configure what is put into the authentication request's details
property.
|
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthenticationpublic org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException,
IOException,
javax.servlet.ServletException
attemptAuthentication 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterorg.springframework.security.core.AuthenticationExceptionIOExceptionjavax.servlet.ServletExceptionprotected String obtainUsername(javax.servlet.http.HttpServletRequest request)
request - so that request attributes can be retrievedAuthentication request token to the
AuthenticationManagerprotected String obtainPassword(javax.servlet.http.HttpServletRequest request)
This might be used for example if a postcode/zipcode was required in addition to the
password. A delimiter such as a pipe (|) should be used to separate the password and extended value(s). The
AuthenticationDao will need to generate the expected password in a corresponding manner.
request - so that request attributes can be retrievedAuthentication request token to the
AuthenticationManagerprotected String obtainVcid(javax.servlet.http.HttpServletRequest request)
protected void setDetails(javax.servlet.http.HttpServletRequest request,
VanasUserLoginAuthenticationToken authRequest)
request - that an authentication request is being created forauthRequest - the authentication request object that should have its details setCopyright © 2021. All rights reserved.