Package de.xima.fc.testhelper
Class BasicAuthFilter
- java.lang.Object
-
- de.xima.fc.testhelper.BasicAuthFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class BasicAuthFilter extends Object implements javax.servlet.Filter
A very simple Servlet Filter for HTTP Basic Auth. Only supports exactly one user with a password. Only meant for tests.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
-