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 aSimpleCredentials
object that is used to log in to the underlying content repository. If no authenticated user is found, thennull
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
-
-
Constructor Summary
Constructors Constructor Description ContainerLoginFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Credentials
getCredentials(javax.servlet.http.HttpServletRequest request)
void
init(javax.servlet.FilterConfig config)
-
Methods inherited from class org.apache.jackrabbit.servlet.login.AbstractLoginFilter
destroy, doFilter
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config)
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classAbstractLoginFilter
-
getCredentials
protected Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
- Specified by:
getCredentials
in classAbstractLoginFilter
-
-