public class CubaAnonymousAuthenticationFilter
extends java.lang.Object
implements javax.servlet.Filter
GlobalConfig.getRestAnonymousEnabled()
is true, then the anonymous user session will be set to the
SecurityContext
and the request will be authenticated. This filter must be invoked after the
OAuth2AuthenticationProcessingFilter
Constructor and Description |
---|
CubaAnonymousAuthenticationFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter