public class SchemaValidationFilter extends Object implements MetadataFilter
| Constructor and Description |
|---|
SchemaValidationFilter(SAMLSchemaBuilder builder)
Constructor.
|
SchemaValidationFilter(SAMLSchemaBuilder builder,
String[] extensionSchemas)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
XMLObject |
filter(XMLObject metadata)
Filters the given metadata, perhaps to remove elements that are not wanted.
|
public SchemaValidationFilter(@Nonnull SAMLSchemaBuilder builder)
builder - SAML schema source to usepublic SchemaValidationFilter(@Nonnull SAMLSchemaBuilder builder, @Nullable @NonnullElements String[] extensionSchemas)
Specifying extension schemas should be done by explicitly injecting a
pre-configured SchemaBuilder using the non-deprecated constructor. Using this
version results in an internally constructed SchemaBuilder using classpath-based
schema resolution of any extensions or imports, with other settings left to their
defaults.
builder - SAML schema source to useextensionSchemas - classpath-based location of metadata extension schemas@Nullable public XMLObject filter(@Nullable XMLObject metadata) throws FilterException
filter in interface MetadataFiltermetadata - the metadata to be filtered.FilterException - thrown if an error occurs during the filtering processCopyright © 2021. All rights reserved.