public class SchemaValidationFilter extends java.lang.Object implements MetadataFilter
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private SAMLSchemaBuilder |
samlSchemaBuilder
SAML schema source.
|
private net.shibboleth.utilities.java.support.xml.SchemaBuilder |
schemaBuilder
Self-managed SchemaBuilder to support old extension schema parameter.
|
| Constructor and Description |
|---|
SchemaValidationFilter(SAMLSchemaBuilder builder)
Constructor.
|
SchemaValidationFilter(SAMLSchemaBuilder builder,
java.lang.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.
|
@Nonnull private final org.slf4j.Logger log
@Nullable private net.shibboleth.utilities.java.support.xml.SchemaBuilder schemaBuilder
@Nonnull private SAMLSchemaBuilder samlSchemaBuilder
public SchemaValidationFilter(@Nonnull
SAMLSchemaBuilder builder)
builder - SAML schema source to usepublic SchemaValidationFilter(@Nonnull
SAMLSchemaBuilder builder,
@Nullable @NonnullElements
java.lang.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 process