SchemaValidation filter allows the validation of the provided metadata against an XML schema. Note that while schema validation can catch a variety of errors in metadata, it is not sufficient to prevent all possible sources of error because XSD isn't expressive enough in practice to describe all requirements of the standard. Metadata sources should be limited to trustworthy publishers whether this filter is used or not.
<MetadataFilter> element and the type
SchemaValidation are defined by the
urn:mace:shibboleth:2.0:metadata schema, which can be located at http://shibboleth.net/schema/idp/shibboleth-metadata.xsd.
The only supported attribute is
schemaBuilderRef, which is the ID of a Spring bean which implements or extends SAMLSchemaBuilder. If this attribute is not specified, then the globally defined bean called shibboleth.SchemaBuilder is used.
This will validate against SAML 2.0, SAML 1.1 and many popular metadata extension schemas such as MDATTR, MDUI and MDRPI.
The only defined, child element,
<ExtensionSchema>, is DEPRECATED.
<metadata:MetadataFilter xsi:type="metadata:SchemaValidation" />