|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.config.BaseService
edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.ShibbolethAttributeFilteringEngine
public class ShibbolethAttributeFilteringEngine
Implementation of AttributeFilteringEngine
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService |
---|
BaseReloadableService.ConfigurationResourceListener |
Constructor Summary | |
---|---|
ShibbolethAttributeFilteringEngine()
Constructor. |
Method Summary | |
---|---|
Map<String,BaseAttribute> |
filterAttributes(Map<String,BaseAttribute> attributes,
SAMLProfileRequestContext context)
Filters values for the given attribute, removing or allowing attributes per some implementation specific policy. |
protected void |
filterAttributes(ShibbolethFilteringContext filterContext,
AttributeFilterPolicy filterPolicy)
Evaluates the given policy's requirement and, if the requirement is met, filters the attributes according to the policy. |
protected void |
filterAttributes(ShibbolethFilteringContext filterContext,
AttributeRule attributeRule)
Evaluates the given attribute rule. |
List<AttributeFilterPolicy> |
getFilterPolicies()
Gets the filter policies active for this engine. |
protected void |
onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
Called after a new context has been created but before it set as the service's context. |
protected void |
runDenyRules(ShibbolethFilteringContext filterContext)
Runs the deny rules registered with the filter context upon the retained value set. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService |
---|
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimer |
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseService |
---|
getApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.service.Service |
---|
getId, isDestroyed, isInitialized |
Constructor Detail |
---|
public ShibbolethAttributeFilteringEngine()
Method Detail |
---|
public List<AttributeFilterPolicy> getFilterPolicies()
public Map<String,BaseAttribute> filterAttributes(Map<String,BaseAttribute> attributes, SAMLProfileRequestContext context) throws AttributeFilteringException
filterAttributes
in interface AttributeFilteringEngine<SAMLProfileRequestContext>
attributes
- attributes to be filteredcontext
- attribute request context
AttributeFilteringException
- thrown if there is a problem retrieving or applying the attribute acceptance
policyprotected void filterAttributes(ShibbolethFilteringContext filterContext, AttributeFilterPolicy filterPolicy) throws FilterProcessingException
filterContext
- current filtering contextfilterPolicy
- current filter policy
FilterProcessingException
- thrown if the given policy can be evaluatedprotected void filterAttributes(ShibbolethFilteringContext filterContext, AttributeRule attributeRule) throws FilterProcessingException
filterContext
- current filtering contextattributeRule
- current attribute rule
FilterProcessingException
- thrown if the given attribute rule can be evaluatedprotected void runDenyRules(ShibbolethFilteringContext filterContext) throws FilterProcessingException
filterContext
- current filtering context
FilterProcessingException
- thrown if there is a problem evaluating a deny value ruleprotected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext) throws ServiceException
onNewContextCreated
in class BaseService
newServiceContext
- the newly created context for the service
ServiceException
- thrown if there is a problem with the given service context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |