Class 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 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