public class NameIDFormatFilter extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements MetadataFilter
NameIDFormat content to entities in order to drive software
behavior based on them.
The entities to annotate are identified with a Predicate, and multiple formats can be
associated with each.| Modifier and Type | Field and Description |
|---|---|
private Multimap<Predicate<EntityDescriptor>,String> |
applyMap
Rules for adding formats.
|
private SAMLObjectBuilder<NameIDFormat> |
formatBuilder
Builder for
NameIDFormat. |
private Logger |
log
Class logger.
|
| Constructor and Description |
|---|
NameIDFormatFilter()
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<String>> rules)
Set the mappings from
Predicate to format collection to apply. |
@Nonnull @NonnullElements private Multimap<Predicate<EntityDescriptor>,String> applyMap
@Nonnull private final SAMLObjectBuilder<NameIDFormat> formatBuilder
NameIDFormat.public void setRules(@Nonnull@NonnullElements Map<Predicate<EntityDescriptor>,Collection<String>> rules)
Predicate to format collection to apply.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.