org.fcrepo.server.security.servletfilters
Class BaseCaching

java.lang.Object
  extended by org.fcrepo.server.security.servletfilters.Base
      extended by org.fcrepo.server.security.servletfilters.FilterSetup
          extended by org.fcrepo.server.security.servletfilters.BaseContributing
              extended by org.fcrepo.server.security.servletfilters.BaseCaching
All Implemented Interfaces:
javax.servlet.Filter, CacheElementPopulator
Direct Known Subclasses:
FilterLdap, FilterPubcookie, FilterXmlUserfile

public abstract class BaseCaching
extends BaseContributing
implements CacheElementPopulator

Author:
Bill Niebel

Field Summary
 String AUTHENTICATE_KEY
           
 String AUTHENTICATED_USER_KEY
           
static String AUTHN_FAILURE_TIMEOUT_DURATION_KEY
           
static String AUTHN_FAILURE_TIMEOUT_UNIT_KEY
           
static String LOOKUP_EXCEPTION_TIMEOUT_DURATION_KEY
           
static String LOOKUP_EXCEPTION_TIMEOUT_UNIT_KEY
           
static String LOOKUP_SUCCESS_TIMEOUT_DURATION_KEY
           
static String LOOKUP_SUCCESS_TIMEOUT_UNIT_KEY
           
 String SPONSORED_USER_KEY
           
protected  boolean SPONSORING
           
 
Fields inherited from class org.fcrepo.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 org.fcrepo.server.security.servletfilters.FilterSetup
FILTER_NAME, inited, NOT_SET
 
Fields inherited from class org.fcrepo.server.security.servletfilters.Base
initErrors, StringArrayPrototype
 
Constructor Summary
BaseCaching()
           
 
Method Summary
protected  boolean authenticate(boolean alreadyAuthenticated)
           
 void authenticate(ExtendedHttpServletRequest extendedHttpServletRequest)
           
 void contributeAttributes(ExtendedHttpServletRequest extendedHttpServletRequest, String userid, String password)
           
 void contributeAuthenticatedAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
           
 void contributeSponsoredAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
           
 void destroy()
           
protected  Cache getCache(String filterName)
           
protected  Cache getNewCache()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  void initThisSubclass(String key, String value)
           
 void populateCacheElement(CacheElement cacheElement, String password)
           
 
Methods inherited from class org.fcrepo.server.security.servletfilters.BaseContributing
doThisSubclass
 
Methods inherited from class org.fcrepo.server.security.servletfilters.FilterSetup
doFilter, getFilterNameAbbrev, init, setConfig, wrap
 
Methods inherited from class org.fcrepo.server.security.servletfilters.Base
booleanValue, enter, enterExit, exit, fail, format, format, format, getClassName, pass, passFail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPONSORING

protected boolean SPONSORING

LOOKUP_SUCCESS_TIMEOUT_UNIT_KEY

public static final String LOOKUP_SUCCESS_TIMEOUT_UNIT_KEY
See Also:
Constant Field Values

LOOKUP_SUCCESS_TIMEOUT_DURATION_KEY

public static final String LOOKUP_SUCCESS_TIMEOUT_DURATION_KEY
See Also:
Constant Field Values

AUTHN_FAILURE_TIMEOUT_UNIT_KEY

public static final String AUTHN_FAILURE_TIMEOUT_UNIT_KEY
See Also:
Constant Field Values

AUTHN_FAILURE_TIMEOUT_DURATION_KEY

public static final String AUTHN_FAILURE_TIMEOUT_DURATION_KEY
See Also:
Constant Field Values

LOOKUP_EXCEPTION_TIMEOUT_UNIT_KEY

public static final String LOOKUP_EXCEPTION_TIMEOUT_UNIT_KEY
See Also:
Constant Field Values

LOOKUP_EXCEPTION_TIMEOUT_DURATION_KEY

public static final String LOOKUP_EXCEPTION_TIMEOUT_DURATION_KEY
See Also:
Constant Field Values

AUTHENTICATE_KEY

public String AUTHENTICATE_KEY

AUTHENTICATED_USER_KEY

public String AUTHENTICATED_USER_KEY

SPONSORED_USER_KEY

public String SPONSORED_USER_KEY
Constructor Detail

BaseCaching

public BaseCaching()
Method Detail

getCache

protected final Cache getCache(String filterName)

init

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

destroy

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

getNewCache

protected Cache getNewCache()

initThisSubclass

protected void initThisSubclass(String key,
                                String value)
Overrides:
initThisSubclass in class BaseContributing

authenticate

protected boolean authenticate(boolean alreadyAuthenticated)
Specified by:
authenticate in class BaseContributing

authenticate

public void authenticate(ExtendedHttpServletRequest extendedHttpServletRequest)
                  throws Exception
Specified by:
authenticate in class BaseContributing
Throws:
Exception

contributeAttributes

public void contributeAttributes(ExtendedHttpServletRequest extendedHttpServletRequest,
                                 String userid,
                                 String password)
                          throws Exception
Throws:
Exception

contributeAuthenticatedAttributes

public void contributeAuthenticatedAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
                                       throws Exception
Specified by:
contributeAuthenticatedAttributes in class BaseContributing
Throws:
Exception

contributeSponsoredAttributes

public void contributeSponsoredAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
                                   throws Exception
Specified by:
contributeSponsoredAttributes in class BaseContributing
Throws:
Exception

populateCacheElement

public void populateCacheElement(CacheElement cacheElement,
                                 String password)
Specified by:
populateCacheElement in interface CacheElementPopulator


Copyright © 2012 DuraSpace. All Rights Reserved.