Package com.aoindustries.servlet.filter
Class ApacheAuthenticationFilter
- java.lang.Object
-
- com.aoindustries.servlet.filter.ApacheAuthenticationFilter
-
- All Implemented Interfaces:
Filter
public class ApacheAuthenticationFilter extends Object implements Filter
Parses Apache group file for role information while under Apache authentication.
When
tomcatAuthentication
is set tofalse
, user information is passed to Tomcat while group membership is not. The filter parses the Apache group file and grants access to the roles corresponding to group names.This should be used for both the
DispatcherType.REQUEST
andDispatcherType.ERROR
dispatchers.
-
-
Constructor Summary
Constructors Constructor Description ApacheAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void
init(FilterConfig config)
-
-
-
Method Detail
-
init
public void init(FilterConfig config)
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
-