Class ByReferenceMetadataFilter
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.saml.metadata.resolver.filter.AbstractMetadataFilter
org.opensaml.saml.metadata.resolver.filter.impl.ByReferenceMetadataFilter
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MetadataFilter
A
MetadataFilter that associates other filters with specific
MetadataResolver 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
FieldsModifier and TypeFieldDescriptionprivate Map<String,MetadataFilter> Map of resolver names to filters.private org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(XMLObject metadata, MetadataFilterContext context) voidMapping of resolver names to filters to run.Methods inherited from class org.opensaml.saml.metadata.resolver.filter.AbstractMetadataFilter
getType, setTypeMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
filterMap
Map of resolver names to filters.
-
-
Constructor Details
-
ByReferenceMetadataFilter
public ByReferenceMetadataFilter()Constructor.
-
-
Method Details
-
setFilterMappings
Mapping of resolver names to filters to run.- Parameters:
map- filter mappings
-
filter
@Nullable public XMLObject filter(@Nullable XMLObject metadata, @Nonnull MetadataFilterContext context) throws FilterException - Throws:
FilterException
-