edu.internet2.middleware.shibboleth.common.attribute.filtering
Interface AttributeFilteringEngine<ContextType extends AttributeRequestContext>
- Type Parameters:
ContextType
- type of request context expected by this filtering engine
- All Known Implementing Classes:
- ShibbolethAttributeFilteringEngine
public interface AttributeFilteringEngine<ContextType extends AttributeRequestContext>
The engine that applies attribute acceptance policies to a collection of attributes.
filterAttributes
Map<String,BaseAttribute> filterAttributes(Map<String,BaseAttribute> attributes,
ContextType context)
throws AttributeFilteringException
- Filters values for the given attribute, removing or allowing attributes per some implementation specific policy.
This filtering process may remove attributes with no values but must not add attributes or attribute values.
- Parameters:
attributes
- attributes to be filteredcontext
- attribute request context
- Returns:
- the filtered attributes, attribute ID is the key, attribute object is the value
- Throws:
AttributeFilteringException
- thrown if there is a problem retrieving or applying the attribute acceptance
policy
Copyright © 2006-2010 Internet2. All Rights Reserved.