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 com.google.common.collect.Multimap<com.google.common.base.Predicate<EntityDescriptor>,String> |
applyMap
Rules for adding formats.
|
private SAMLObjectBuilder<NameIDFormat> |
formatBuilder
Builder for
NameIDFormat . |
private org.slf4j.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<com.google.common.base.Predicate<EntityDescriptor>,Collection<String>> rules)
Set the mappings from
Predicate to format collection to apply. |
@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private com.google.common.collect.Multimap<com.google.common.base.Predicate<EntityDescriptor>,String> applyMap
@Nonnull private final SAMLObjectBuilder<NameIDFormat> formatBuilder
NameIDFormat
.public void setRules(@Nonnull @NonnullElements Map<com.google.common.base.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 MetadataFilter
FilterException
protected void filterEntityDescriptor(@Nonnull EntityDescriptor descriptor)
descriptor
- entity descriptor to filterprotected void filterEntitiesDescriptor(@Nonnull EntitiesDescriptor descriptor)
descriptor
- entities descriptor to filterCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.