Class ByReferenceMetadataFilter
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.filter.impl.ByReferenceMetadataFilter
-
- All Implemented Interfaces:
MetadataFilter
public class ByReferenceMetadataFilter extends Object implements MetadataFilter
AMetadataFilterthat associates other filters with specificMetadataResolverinstances by ID.The
MetadataFilterContextis 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>filterMapMap of resolver names to filters.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description ByReferenceMetadataFilter()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLObjectfilter(XMLObject metadata, MetadataFilterContext context)voidsetFilterMappings(Map<Object,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<Object,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:
filterin interfaceMetadataFilter- Throws:
FilterException
-
-