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.One resource types is supported, which allows loading of metadata other from the java classpath
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
Table of 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.
The xsi:type
of the <MetadataResource> is defined by the urn:mace:shibboleth:2.0:resource
schema which can be located at http://shibboleth.net/schema/idp/shibboleth-resource.xsd.
Attributes
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.
Anchor | ||||
---|---|---|---|---|
|
...
Name | Cardinality | Description |
---|---|---|
<MetadataFilter > | 0 or more | A metadata filter applied to candidate metadata as it flows through the metadata pipeline |
<MetadataResource> | Exactly 0 or 1 | Specifies 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.
Exactly one <MetadataResource>
child element is required. If none is configured, an error will occur.
One metadata resource type is supported. The ClasspathResource type sources metadata from the java classpath.
Examples
The following example loads metadata from the Java Classpath:supplied bean
Code Block | ||||
---|---|---|---|---|
| ||||
<MetadataProvider id="ClasspathResourceMetadata" xsi:type="ResourceBackedMetadataProvider"> <MetadataResource xmlns:resource="urn:mace:shibboleth:2.0:resource" xsi:type="resource:ClasspathResource" file="/path/to/a/classpath/location/metadata.xml" /> <MetadataProvider> resourceRef="SpringResource"/> |