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
-
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 TypeMethodDescriptionvoid
addDeniedIdPAttributeValues
(String attributeId, Collection<IdPAttributeValue> attributeValues) Adds a collection of attribute values that are not permitted to be released.void
addPermittedIdPAttributeValues
(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, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 @NonnullElements @Unmodifiable 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 @NonnullElements Collection<IdPAttributeValue> attributeValues) 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
-
getDeniedAttributeValues
@Nonnull @NonnullElements @Unmodifiable 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 @NonnullElements Collection<IdPAttributeValue> attributeValues) 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
-