Class ByReferenceMetadataFilter
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.filter.impl.ByReferenceMetadataFilter
-
- All Implemented Interfaces:
MetadataFilter
public class ByReferenceMetadataFilter extends Object implements MetadataFilter
AMetadataFilter
that associates other filters with specificMetadataResolver
instances by ID.The
MetadataFilterContext
is used to identify which resolver is actually running, to properly identify which filters to apply.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,MetadataFilter>
filterMap
Map of resolver names to filters.private org.slf4j.Logger
log
Class logger.
-
Constructor Summary
Constructors Constructor Description ByReferenceMetadataFilter()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLObject
filter(XMLObject metadata, MetadataFilterContext context)
void
setFilterMappings(Map<String,MetadataFilter> map)
Mapping of resolver names to filters to run.
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
filterMap
@Nonnull @NonnullElements private Map<String,MetadataFilter> filterMap
Map of resolver names to filters.
-
-
Method Detail
-
setFilterMappings
public void setFilterMappings(@Nonnull @NonnullElements Map<String,MetadataFilter> map)
Mapping of resolver names to filters to run.- Parameters:
map
- filter mappings
-
filter
public XMLObject filter(@Nullable XMLObject metadata, @Nonnull MetadataFilterContext context) throws FilterException
- Specified by:
filter
in interfaceMetadataFilter
- Throws:
FilterException
-
-