public class FormLoginDecryptParameterAuthenticationFilter
extends org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
Description : 自定义表单登录参数加密filter
SPRING_SECURITY_FORM_PASSWORD_KEY, SPRING_SECURITY_FORM_USERNAME_KEY| 构造器和说明 |
|---|
FormLoginDecryptParameterAuthenticationFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
unsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthenticationException failed)
重写该方法,避免在日志Debug级别会输出错误信息的问题。
|
getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setDetails, setPasswordParameter, setPostOnly, setUsernameParameterafterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthenticationpublic FormLoginDecryptParameterAuthenticationFilter()
public Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AuthenticationException
attemptAuthentication 在类中 org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilterAuthenticationExceptionprotected void unsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthenticationException failed)
throws IOException,
javax.servlet.ServletException
unsuccessfulAuthentication 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterrequest - 请求response - 响应failed - 失败内容IOException - IOExceptionjavax.servlet.ServletException - ServletExceptionCopyright © 2022. All rights reserved.