public class AuthenticationFilter
extends org.springframework.web.filter.GenericFilterBean
| 构造器和说明 |
|---|
AuthenticationFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
static void |
handleAuthenticationServiceException(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
org.springframework.security.authentication.AuthenticationServiceException exception)
处理授权内部失败
|
static void |
handleUnAuthentication(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
org.springframework.security.core.AuthenticationException authException)
处理授权失败
|
public AuthenticationFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic static void handleUnAuthentication(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
org.springframework.security.core.AuthenticationException authException)
throws IOException
IOExceptionpublic static void handleAuthenticationServiceException(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
org.springframework.security.authentication.AuthenticationServiceException exception)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.