org.fcrepo.server.security.servletfilters
Class BaseContributing

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
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
BaseCaching

public abstract class BaseContributing
extends FilterSetup

Author:
Bill Niebel

Field Summary
protected  boolean AUTHENTICATE
           
static String[] EMPTY_ARRAY
           
static Hashtable EMPTY_MAP
           
 String EMPTY_RESULTS
           
static String EMPTY_RESULTS_KEY
           
protected  Collection FILTERS_CONTRIBUTING_AUTHENTICATED_ATTRIBUTES
           
protected  Collection FILTERS_CONTRIBUTING_SPONSORED_ATTRIBUTES
           
protected  boolean LOG_STACK_TRACES
           
static String LOG_STACK_TRACES_KEY
           
static HashSet NULL_SET
           
 String PW_0
           
static String PW_0_KEY
           
 String PW_NULL
           
static String PW_NULL_KEY
           
static String SKIP_FILTER
           
protected  String SURROGATE_ATTRIBUTE
           
static String SURROGATE_ATTRIBUTE_KEY
           
protected  String SURROGATE_ROLE
           
static String SURROGATE_ROLE_KEY
           
static String UNAUTHENTICATE_USER_CONDITIONALLY
           
static String UNAUTHENTICATE_USER_UNCONDITIONALLY
           
static String 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
BaseContributing()
           
 
Method Summary
protected abstract  boolean authenticate(boolean alreadyAuthenticated)
           
protected abstract  void authenticate(ExtendedHttpServletRequest extendedHttpServletRequest)
           
protected abstract  void contributeAuthenticatedAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
           
protected abstract  void contributeSponsoredAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
           
 void destroy()
           
 boolean doThisSubclass(ExtendedHttpServletRequest extendedHttpServletRequest, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  void initThisSubclass(String key, String value)
           
 
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

NULL_SET

public static final HashSet NULL_SET

EMPTY_MAP

public static final Hashtable EMPTY_MAP

EMPTY_ARRAY

public static final String[] EMPTY_ARRAY

AUTHENTICATE

protected boolean AUTHENTICATE

FILTERS_CONTRIBUTING_AUTHENTICATED_ATTRIBUTES

protected Collection FILTERS_CONTRIBUTING_AUTHENTICATED_ATTRIBUTES

FILTERS_CONTRIBUTING_SPONSORED_ATTRIBUTES

protected Collection FILTERS_CONTRIBUTING_SPONSORED_ATTRIBUTES

SURROGATE_ROLE_KEY

public static final String SURROGATE_ROLE_KEY
See Also:
Constant Field Values

SURROGATE_ROLE

protected String SURROGATE_ROLE

SURROGATE_ATTRIBUTE_KEY

public static final String SURROGATE_ATTRIBUTE_KEY
See Also:
Constant Field Values

SURROGATE_ATTRIBUTE

protected String SURROGATE_ATTRIBUTE

USE_FILTER

public static final String USE_FILTER
See Also:
Constant Field Values

SKIP_FILTER

public static final String SKIP_FILTER
See Also:
Constant Field Values

UNAUTHENTICATE_USER_UNCONDITIONALLY

public static final String UNAUTHENTICATE_USER_UNCONDITIONALLY
See Also:
Constant Field Values

UNAUTHENTICATE_USER_CONDITIONALLY

public static final String UNAUTHENTICATE_USER_CONDITIONALLY
See Also:
Constant Field Values

PW_NULL_KEY

public static final String PW_NULL_KEY
See Also:
Constant Field Values

PW_NULL

public String PW_NULL

PW_0_KEY

public static final String PW_0_KEY
See Also:
Constant Field Values

PW_0

public String PW_0

EMPTY_RESULTS_KEY

public static final String EMPTY_RESULTS_KEY
See Also:
Constant Field Values

EMPTY_RESULTS

public String EMPTY_RESULTS

LOG_STACK_TRACES_KEY

public static final String LOG_STACK_TRACES_KEY
See Also:
Constant Field Values

LOG_STACK_TRACES

protected boolean LOG_STACK_TRACES
Constructor Detail

BaseContributing

public BaseContributing()
Method Detail

init

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

destroy

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

initThisSubclass

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

doThisSubclass

public boolean doThisSubclass(ExtendedHttpServletRequest extendedHttpServletRequest,
                              javax.servlet.http.HttpServletResponse response)
                       throws Throwable
Overrides:
doThisSubclass in class FilterSetup
Throws:
Throwable

authenticate

protected abstract void authenticate(ExtendedHttpServletRequest extendedHttpServletRequest)
                              throws Exception
Throws:
Exception

contributeAuthenticatedAttributes

protected abstract void contributeAuthenticatedAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
                                                   throws Exception
Throws:
Exception

contributeSponsoredAttributes

protected abstract void contributeSponsoredAttributes(ExtendedHttpServletRequest extendedHttpServletRequest)
                                               throws Exception
Throws:
Exception

authenticate

protected abstract boolean authenticate(boolean alreadyAuthenticated)


Copyright © 2012 DuraSpace. All Rights Reserved.