org.apache.jetspeed.security.impl.ntlm
Class NtlmHttpServletRequestFilter
java.lang.Object
org.apache.jetspeed.security.impl.ntlm.NtlmHttpServletRequestFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class NtlmHttpServletRequestFilter
- extends Object
- implements javax.servlet.Filter
NtlmHttpServletRequestFilter
can be used in combination with an Ntml authentication filter (jCIFS).
The NtlmHttpServletRequestFilter
must be configured after the jCIFS filter in web.xml. The
NtlmHttpServletRequestFilter wraps the jCIFS HttpServletRequest with a NtlmHttpServletRequestWrapper
.
This is done to control which principal / remoteUser is returned by the request.
If a fallback authentication method is used (e.g. container-based form authentication) then you must
use the filter param org.apache.jetspeed.security.ntlm.ignoreUrls
in web.xml to specify the urls for
which the Ntlm principal / remoteUser should be ignored.
- Version:
- $Id$
- Author:
- Dennis Dam
- See Also:
NtlmHttpServletRequestWrapper
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ignoreNtlmUrls
private String ignoreNtlmUrls
NtlmHttpServletRequestFilter
public NtlmHttpServletRequestFilter()
destroy
public void destroy()
- Specified by:
destroy
in interface javax.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 interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
init
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.