public class UsernamePasswordAuthFilter extends SecurityRequestFilter
登陆时用户名和密码校验
即在系统默认校验之前检查一下用户名和密码是否正确 , 用于在UsernamePasswordAuthenticationFilter 之前提前校验一下用户名是否已经存在,会在UsernameAuthInterceptor中被收集注入Constructor and Description |
---|
UsernamePasswordAuthFilter(HandlerProcessor handlerProcessor,
SecurityHelper securityHelper,
PropertyResource propertyResource,
SecurityExtractor securityExtractor) |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
用于标明将该过滤器实例配置到spring security过滤器的那个点上
|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
public UsernamePasswordAuthFilter(HandlerProcessor handlerProcessor, SecurityHelper securityHelper, PropertyResource propertyResource, SecurityExtractor securityExtractor)
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
javax.servlet.ServletException
IOException
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
SecurityRequestFilter
configure
in class SecurityRequestFilter
http
- HttpSecurityException
- 配置时出现问题Copyright © 2021. All rights reserved.