public class AuthenticationFilter
extends org.springframework.web.filter.GenericFilterBean
| 构造器和说明 |
|---|
AuthenticationFilter() |
AuthenticationFilter(RequestMatcher urlRequestMatcher) |
AuthenticationFilter(String filterProcessesUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
AuthenticationManager |
getAuthenticationManager() |
AuthorizationFailureHandler |
getAuthorizationFailureHandler() |
protected boolean |
isUrlProcessingMatched(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setAuthenticationManager(AuthenticationManager authenticationManager) |
void |
setAuthorizationFailureHandler(AuthorizationFailureHandler authorizationFailureHandler) |
void |
setEnableCors(boolean enableCors) |
void |
setIgnoredProcessesUrl(String ignoreFilterProcessesUrl) |
void |
setIgnoredUrlRequestMatcher(RequestMatcher ignoredUrlRequestMatcher) |
void |
setProcessesUrl(String filterProcessesUrl) |
void |
setTokenResolver(TokenResolver tokenResolver) |
void |
setUrlRequestMatcher(RequestMatcher urlRequestMatcher) |
public AuthenticationFilter()
public AuthenticationFilter(String filterProcessesUrl)
public AuthenticationFilter(RequestMatcher urlRequestMatcher)
public void setProcessesUrl(String filterProcessesUrl)
public final void setUrlRequestMatcher(RequestMatcher urlRequestMatcher)
public void setIgnoredProcessesUrl(String ignoreFilterProcessesUrl)
public void setIgnoredUrlRequestMatcher(RequestMatcher ignoredUrlRequestMatcher)
public void setTokenResolver(TokenResolver tokenResolver)
public AuthorizationFailureHandler getAuthorizationFailureHandler()
public void setAuthorizationFailureHandler(AuthorizationFailureHandler authorizationFailureHandler)
public AuthenticationManager getAuthenticationManager()
public void setAuthenticationManager(AuthenticationManager authenticationManager)
public void setEnableCors(boolean enableCors)
public final void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected boolean isUrlProcessingMatched(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanafterPropertiesSet 在类中 org.springframework.web.filter.GenericFilterBeanCopyright © 2016. All rights reserved.