Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
CommonAttributes
CommonAttributes
Common Attributes

...

NameCardinalityDescription
<MetadataFilter>0 or moreA metadata filter applied to candidate metadata as it flows through the metadata pipeline
<MetadataResource>Exactly 0 or 1Specifies 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
languagexml
titleLoad Metadata from the classpath
<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"/>