public class SchemaValidationFilter extends 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,
String[] extensionSchemas)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.opensaml.core.xml.XMLObject |
filter(org.opensaml.core.xml.XMLObject metadata) |
@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 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 org.opensaml.core.xml.XMLObject filter(@Nullable org.opensaml.core.xml.XMLObject metadata) throws FilterException
filter
in interface MetadataFilter
FilterException
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.