org.apache.jetspeed.security.impl.ntlm
Class NtlmHttpServletRequestFilter

java.lang.Object
  extended by org.apache.jetspeed.security.impl.ntlm.NtlmHttpServletRequestFilter
All Implemented Interfaces:
javax.servlet.Filter

public class NtlmHttpServletRequestFilter
extends java.lang.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

Constructor Summary
NtlmHttpServletRequestFilter()
           
 
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
 

Constructor Detail

NtlmHttpServletRequestFilter

public NtlmHttpServletRequestFilter()
Method Detail

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 java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.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-2010 Apache Software Foundation. All Rights Reserved.