public class OAuth2AuthenticationProcessingFilter extends Object implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
OAuth2Authentication (if used in conjunction with an
OAuth2AuthenticationManager).| Constructor and Description |
|---|
OAuth2AuthenticationProcessingFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource) |
void |
setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint) |
void |
setAuthenticationEventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher eventPublisher) |
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager) |
void |
setStateless(boolean stateless)
Flag to say that this filter guards stateless resources (default true).
|
void |
setTokenExtractor(TokenExtractor tokenExtractor) |
public OAuth2AuthenticationProcessingFilter()
public void setStateless(boolean stateless)
stateless - the flag to set (default true)public void setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
authenticationEntryPoint - the authentication entry point to setpublic void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
authenticationManager - the authentication manager to set (mandatory with no default)public void setTokenExtractor(TokenExtractor tokenExtractor)
tokenExtractor - the tokenExtractor to setpublic void setAuthenticationEventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher eventPublisher)
eventPublisher - the event publisher to setpublic void setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
authenticationDetailsSource - The AuthenticationDetailsSource to usepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2016. All rights reserved.