The ResourceBackedMetadataProvider
loads metadata from a resource - a complex source that cannot be located from a file or an HTTP URL. The provider can be configured to periodically check and reload the metadata if needed.
The only supported use of this provider is with spring define bean which is a Spring Resource (or more rarely a Shibboleth Resource) via the resourceRef
attribute.
Contents
The <MetadataProvider>
element and the type ResourceBackedMetadataProvider
are defined by the urn:mace:shibboleth:2.0:metadata
schema, which can be located at http://shibboleth.net/schema/idp/shibboleth-metadata.xsd.
Any of the Common Attributes or the Reloading Attributes may be configured.
In addition the resourceRef
property is used to specify the source of the data.
Any of the following child elements may be specified (in order).
Name | Cardinality | Description |
---|---|---|
<MetadataFilter > | 0 or more | A metadata filter applied to candidate metadata as it flows through the metadata pipeline |
<MetadataResource> | 0 or 1 | Deprecated If present, it specifies the metadata resource type |
The <MetadataFilter
>
child element is common to all metadata providers. The <MetadataResource>
child element is exclusive to the ResourceBackedMetadataProvider
type.
The following example loads metadata from the supplied bean
<MetadataProvider id="ClasspathResourceMetadata" xsi:type="ResourceBackedMetadataProvider" resourceRef="SpringResource"/> |