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 aSimpleCredentialsobject that is used to log in to the underlying content repository. If no authenticated user is found, thennullcredentials 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 CredentialsgetCredentials(javax.servlet.http.HttpServletRequest request)voidinit(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:
initin interfacejavax.servlet.Filter- Overrides:
initin classAbstractLoginFilter
-
getCredentials
protected Credentials getCredentials(javax.servlet.http.HttpServletRequest request)
- Specified by:
getCredentialsin classAbstractLoginFilter
-
-