public class EntityAttributesFilter extends Object implements MetadataFilter
EntityAttributes extension content to entities in order to drive software
behavior based on them.
The entities to annotate are identified with a Predicate, and multiple attributes can be
associated with each.| Modifier and Type | Field and Description |
|---|---|
private Multimap<Predicate<EntityDescriptor>,Attribute> |
applyMap
Rules for adding attributes.
|
private SAMLObjectBuilder<EntityAttributes> |
entityAttributesBuilder
Builder for
EntityAttributes. |
private SAMLObjectBuilder<Extensions> |
extBuilder
Builder for
Extensions. |
private Logger |
log
Class logger.
|
| Constructor and Description |
|---|
EntityAttributesFilter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.core.xml.XMLObject |
filter(org.opensaml.core.xml.XMLObject metadata) |
protected void |
filterEntitiesDescriptor(EntitiesDescriptor descriptor)
Filters entities descriptor.
|
protected void |
filterEntityDescriptor(EntityDescriptor descriptor)
Filters entity descriptor.
|
void |
setRules(Map<Predicate<EntityDescriptor>,Collection<Attribute>> rules)
|
@Nonnull @NonnullElements private Multimap<Predicate<EntityDescriptor>,Attribute> applyMap
@Nonnull private final SAMLObjectBuilder<Extensions> extBuilder
Extensions.@Nonnull private final SAMLObjectBuilder<EntityAttributes> entityAttributesBuilder
EntityAttributes.public void setRules(@Nonnull@NonnullElements Map<Predicate<EntityDescriptor>,Collection<Attribute>> rules)
rules - rules to apply@Nullable public org.opensaml.core.xml.XMLObject filter(@Nullable org.opensaml.core.xml.XMLObject metadata) throws FilterException
filter in interface MetadataFilterFilterExceptionprotected void filterEntityDescriptor(@Nonnull EntityDescriptor descriptor)
descriptor - entity descriptor to filterprotected void filterEntitiesDescriptor(@Nonnull EntitiesDescriptor descriptor)
descriptor - entities descriptor to filterCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.