org.apache.jackrabbit.servlet.login
Class NullLoginFilter

java.lang.Object
  extended by org.apache.jackrabbit.servlet.login.AbstractLoginFilter
      extended by org.apache.jackrabbit.servlet.login.NullLoginFilter
All Implemented Interfaces:
javax.servlet.Filter

public class NullLoginFilter
extends AbstractLoginFilter

Login filter that always uses null credentials for logging in to the content repository. This is useful for example for public web sites where all repository access is performed using anonymous sessions. Another use case for this login filter is when login information is made available to the content repository through JAAS or some other out-of-band mechanism.

Since:
Apache Jackrabbit 1.6

Constructor Summary
NullLoginFilter()
           
 
Method Summary
protected  Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
          Always returns null.
 
Methods inherited from class org.apache.jackrabbit.servlet.login.AbstractLoginFilter
destroy, doFilter, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLoginFilter

public NullLoginFilter()
Method Detail

getCredentials

protected Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
Always returns null.

Specified by:
getCredentials in class AbstractLoginFilter
Parameters:
request - ignored
Returns:
null credentials


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.