org.apache.jackrabbit.servlet.login
Class ContainerLoginFilter
java.lang.Object
org.apache.jackrabbit.servlet.login.AbstractLoginFilter
org.apache.jackrabbit.servlet.login.ContainerLoginFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class ContainerLoginFilter
- extends AbstractLoginFilter
Login filter that relies on container authentication to provide the
authenticated username of a request. This username is associated with
a dummy password (empty by default, configurable through the init
parameter "password") in a SimpleCredentials
object that is
used to log in to the underlying content repository. If no authenticated
user is found, then null
credentials are used.
It is expected that the underlying repository is configured to simply
trust the given username. If the same repository is also made available
for direct logins, then a special secret password that allows logins with
any username could be configured just for this filter.
- Since:
- Apache Jackrabbit 1.6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerLoginFilter
public ContainerLoginFilter()
init
public void init(javax.servlet.FilterConfig config)
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class AbstractLoginFilter
getCredentials
protected Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
- Specified by:
getCredentials
in class AbstractLoginFilter
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.