public class ShibbolethAttributeFilteringEngine extends BaseReloadableService implements AttributeFilteringEngine<SAMLProfileRequestContext>
AttributeFilteringEngine.BaseReloadableService.ConfigurationResourceListener| Modifier and Type | Field and Description |
|---|---|
private List<AttributeFilterPolicy> |
filterPolicies
List of unmodifiable loaded filter policies.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
ShibbolethAttributeFilteringEngine()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimergetApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, isDestroyed, isInitializedprivate final org.slf4j.Logger log
private List<AttributeFilterPolicy> filterPolicies
public ShibbolethAttributeFilteringEngine()
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 contextAttributeFilteringException - 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 policyFilterProcessingException - thrown if the given policy can be evaluatedprotected void filterAttributes(ShibbolethFilteringContext filterContext, AttributeRule attributeRule) throws FilterProcessingException
filterContext - current filtering contextattributeRule - current attribute ruleFilterProcessingException - thrown if the given attribute rule can be evaluatedprotected void runDenyRules(ShibbolethFilteringContext filterContext) throws FilterProcessingException
filterContext - current filtering contextFilterProcessingException - thrown if there is a problem evaluating a deny value ruleprotected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
throws ServiceException
onNewContextCreated in class BaseServicenewServiceContext - the newly created context for the serviceServiceException - thrown if there is a problem with the given service contextCopyright © 1999-2015. All Rights Reserved.