fedora.server.security.servletfilters.ldap
Class FilterLdap

java.lang.Object
  extended by fedora.server.security.servletfilters.Base
      extended by fedora.server.security.servletfilters.FilterSetup
          extended by fedora.server.security.servletfilters.BaseContributing
              extended by fedora.server.security.servletfilters.BaseCaching
                  extended by fedora.server.security.servletfilters.ldap.FilterLdap
All Implemented Interfaces:
CacheElementPopulator, javax.servlet.Filter

public class FilterLdap
extends BaseCaching

Author:
Bill Niebel (niebel@virginia.edu)

Field Summary
static java.lang.String ATTRIBUTES2RETURN_KEY
           
static java.lang.String BASE_KEY
           
static java.lang.String BIND_FILTER_KEY
           
static java.lang.String CONTEXT_VERSION_KEY
           
static java.lang.String FILTER_KEY
           
static java.lang.String GROUPS_NAME_KEY
           
protected static org.apache.commons.logging.Log log
           
static java.lang.String PASSWORD_KEY
           
 java.lang.String SECURITY_AUTHENTICATION
           
static java.lang.String SECURITY_AUTHENTICATION_KEY
           
 java.lang.String SECURITY_CREDENTIALS
           
static java.lang.String SECURITY_CREDENTIALS_KEY
           
 java.lang.String SECURITY_PRINCIPAL
           
static java.lang.String SECURITY_PRINCIPAL_KEY
           
static java.lang.String URL_KEY
           
static java.lang.String USERID_KEY
           
static java.lang.String VERSION_KEY
           
 
Fields inherited from class fedora.server.security.servletfilters.BaseCaching
AUTHENTICATE_KEY, AUTHENTICATED_USER_KEY, AUTHN_FAILURE_TIMEOUT_DURATION_KEY, AUTHN_FAILURE_TIMEOUT_UNIT_KEY, LOOKUP_EXCEPTION_TIMEOUT_DURATION_KEY, LOOKUP_EXCEPTION_TIMEOUT_UNIT_KEY, LOOKUP_SUCCESS_TIMEOUT_DURATION_KEY, LOOKUP_SUCCESS_TIMEOUT_UNIT_KEY, SPONSORED_USER_KEY, SPONSORING
 
Fields inherited from class fedora.server.security.servletfilters.BaseContributing
AUTHENTICATE, EMPTY_ARRAY, EMPTY_MAP, EMPTY_RESULTS, EMPTY_RESULTS_KEY, FILTERS_CONTRIBUTING_AUTHENTICATED_ATTRIBUTES, FILTERS_CONTRIBUTING_SPONSORED_ATTRIBUTES, LOG_STACK_TRACES, LOG_STACK_TRACES_KEY, NULL_SET, PW_0, PW_0_KEY, PW_NULL, PW_NULL_KEY, SKIP_FILTER, SURROGATE_ATTRIBUTE, SURROGATE_ATTRIBUTE_KEY, SURROGATE_ROLE, SURROGATE_ROLE_KEY, UNAUTHENTICATE_USER_CONDITIONALLY, UNAUTHENTICATE_USER_UNCONDITIONALLY, USE_FILTER
 
Fields inherited from class fedora.server.security.servletfilters.FilterSetup
FILTER_NAME, inited, NOT_SET
 
Fields inherited from class fedora.server.security.servletfilters.Base
initErrors, StringArrayPrototype
 
Constructor Summary
FilterLdap()
           
 
Method Summary
 void destroy()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  void initThisSubclass(java.lang.String key, java.lang.String value)
           
 void populateCacheElement(CacheElement cacheElement, java.lang.String password)
           
 
Methods inherited from class fedora.server.security.servletfilters.BaseCaching
authenticate, authenticate, contributeAttributes, contributeAuthenticatedAttributes, contributeSponsoredAttributes, getCache, getNewCache
 
Methods inherited from class fedora.server.security.servletfilters.BaseContributing
doThisSubclass
 
Methods inherited from class fedora.server.security.servletfilters.FilterSetup
doFilter, getFilterNameAbbrev, wrap
 
Methods inherited from class fedora.server.security.servletfilters.Base
booleanValue, enter, enterExit, exit, fail, format, format, format, getClassName, pass, passFail, showThrowable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

CONTEXT_VERSION_KEY

public static final java.lang.String CONTEXT_VERSION_KEY
See Also:
Constant Field Values

VERSION_KEY

public static final java.lang.String VERSION_KEY
See Also:
Constant Field Values

BIND_FILTER_KEY

public static final java.lang.String BIND_FILTER_KEY
See Also:
Constant Field Values

URL_KEY

public static final java.lang.String URL_KEY
See Also:
Constant Field Values

BASE_KEY

public static final java.lang.String BASE_KEY
See Also:
Constant Field Values

FILTER_KEY

public static final java.lang.String FILTER_KEY
See Also:
Constant Field Values

USERID_KEY

public static final java.lang.String USERID_KEY
See Also:
Constant Field Values

PASSWORD_KEY

public static final java.lang.String PASSWORD_KEY
See Also:
Constant Field Values

ATTRIBUTES2RETURN_KEY

public static final java.lang.String ATTRIBUTES2RETURN_KEY
See Also:
Constant Field Values

GROUPS_NAME_KEY

public static final java.lang.String GROUPS_NAME_KEY
See Also:
Constant Field Values

SECURITY_AUTHENTICATION_KEY

public static final java.lang.String SECURITY_AUTHENTICATION_KEY
See Also:
Constant Field Values

SECURITY_PRINCIPAL_KEY

public static final java.lang.String SECURITY_PRINCIPAL_KEY
See Also:
Constant Field Values

SECURITY_CREDENTIALS_KEY

public static final java.lang.String SECURITY_CREDENTIALS_KEY
See Also:
Constant Field Values

SECURITY_AUTHENTICATION

public java.lang.String SECURITY_AUTHENTICATION

SECURITY_PRINCIPAL

public java.lang.String SECURITY_PRINCIPAL

SECURITY_CREDENTIALS

public java.lang.String SECURITY_CREDENTIALS
Constructor Detail

FilterLdap

public FilterLdap()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class BaseCaching

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter
Overrides:
destroy in class BaseCaching

initThisSubclass

protected void initThisSubclass(java.lang.String key,
                                java.lang.String value)
Overrides:
initThisSubclass in class BaseCaching

populateCacheElement

public void populateCacheElement(CacheElement cacheElement,
                                 java.lang.String password)
Specified by:
populateCacheElement in interface CacheElementPopulator
Overrides:
populateCacheElement in class BaseCaching