Class AttributeFilterWorkContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.attribute.filter.context.AttributeFilterWorkContext
- All Implemented Interfaces:
Iterable<BaseContext>
A context which carries and collects information through the attribute filtering process, and coordinates data
between the filter implementation and the various resolver MatchFunctor implementations.
This should be considered a private API limited to plugin implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,Set<IdPAttributeValue>> Values, for a given attribute, that are not permitted to be released.private final Map<String,Set<IdPAttributeValue>> Values, for a given attribute, that are permitted to be released. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeniedIdPAttributeValues(String attributeId, Collection<IdPAttributeValue> attributeValues) Adds a collection of attribute values that are not permitted to be released.voidaddPermittedIdPAttributeValues(String attributeId, Collection<IdPAttributeValue> attributeValues) Adds a collection of attribute values that are permitted to be released.Gets the unmodifiable collection of attribute values, indexed by ID, that are not permitted to be released.Gets the collection of attribute values, indexed by ID, that are permitted to be released.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
permittedValues
Values, for a given attribute, that are permitted to be released. -
deniedValues
Values, for a given attribute, that are not permitted to be released.
-
-
Constructor Details
-
AttributeFilterWorkContext
public AttributeFilterWorkContext()Constructor.
-
-
Method Details
-
getPermittedIdPAttributeValues
@Nonnull @Unmodifiable @NotLive public Map<String,Set<IdPAttributeValue>> getPermittedIdPAttributeValues()Gets the collection of attribute values, indexed by ID, that are permitted to be released.- Returns:
- collection of attribute values, indexed by ID, that are permitted to be released,
-
addPermittedIdPAttributeValues
public void addPermittedIdPAttributeValues(@Nonnull @NotEmpty String attributeId, @Nullable Collection<IdPAttributeValue> attributeValues) throws AttributeFilterException Adds a collection of attribute values that are permitted to be released. Attempting to add values for an attribute that is not a member ofAttributeFilterContext.getPrefilteredIdPAttributes()will result in anIllegalArgumentException. Attempting to add an attribute value that is not a member ofIdPAttribute.getValues()will result in anIllegalArgumentException.- Parameters:
attributeId- ID of the attribute whose values are permitted to be releasedattributeValues- values for the attribute that are permitted to be released- Throws:
AttributeFilterException- if the context tree is invalid or the value(s) to add are not actually values of the attribute.
-
getDeniedAttributeValues
@Nonnull @Unmodifiable @NotLive public Map<String,Set<IdPAttributeValue>> getDeniedAttributeValues()Gets the unmodifiable collection of attribute values, indexed by ID, that are not permitted to be released.- Returns:
- collection of attribute values, indexed by ID, that are not permitted to be released
-
addDeniedIdPAttributeValues
public void addDeniedIdPAttributeValues(@Nonnull @NotEmpty String attributeId, @Nullable Collection<IdPAttributeValue> attributeValues) throws AttributeFilterException Adds a collection of attribute values that are not permitted to be released. Attempting to add values for an attribute that is not a member ofAttributeFilterContext.getPrefilteredIdPAttributes()will result in anIllegalArgumentException. Attempting to add an attribute value that is not a member ofIdPAttribute.getValues()will result in anIllegalArgumentException.- Parameters:
attributeId- ID of the attribute whose values are not permitted to be releasedattributeValues- values for the attribute that are not permitted to be released- Throws:
AttributeFilterException- if the context tree is invalid or if the values being denied are not in fact values of the attribute
-