public class ShibbolethAttributeFilteringEngine extends BaseReloadableService implements AttributeFilteringEngine<SAMLProfileRequestContext>
AttributeFilteringEngine
.BaseReloadableService.ConfigurationResourceListener
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, setPollingTimer
getApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, isDestroyed, isInitialized
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 BaseService
newServiceContext
- the newly created context for the serviceServiceException
- thrown if there is a problem with the given service contextCopyright © 1999–2014. All rights reserved.