Versions Compared

Key

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

...

  • file - the classpath path to the file to be used as the resource. This should always start with a '/' which represents the root of the classpath.
Code Block
xml
xml
titleExample Classpath Resourcexml
<EXAMPLE xsi:type="resource:ClasspathResource"
         file="/org/example/data/key.pem" />

...

  • file - the filesystem path to the file to be used as the resource
Code Block
xml
xml
titleExample Filesystem Resourcexml
<EXAMPLE xsi:type="resource:FilesystemResource"
         file="/path/to/some/key.pem" />

...

  • url - the URL to the file to be used as the resource
Code Block
xml
xml
titleExample HTTP Resourcexml
<EXAMPLE xsi:type="resource:HttpResource"
         url="http://www.example.org/someFile.xml" />

...

  • url - the URL to the file to be used as the resource
  • file - the filesystem path to which the backup file will be written
Code Block
xml
xml
titleExample File-backed HTTP Resourcexml
<EXAMPLE xsi:type="resource:FileBackedHttpResource"
         url="http://www.example.org/someFile.xml"
         file="/path/to/backup/someFile.xml" />

...

An input resource that reads information from a Subversion repository.

Note

For licensing reasons, this resoure type is not usable out of the box as of V2.4.1. To enable SVN support, you will need to download SVNKit yourself, add its jars to the install tree's lib folder, and reinstall. Make sure to use a version compatible with your working copy format, or remove the working copy and start fresh. Note that only 1.3 has been tested.

 

The resource is declared using type attribute xsi:type="resource:SVNResource" with the following required attributeattributes:

  • repositoryURL - Subversion URI to the remote directory (svn, svn+ssh, http(s), file supported)
  • workingCopyDirectory - location where the local working copy of the resource will be kept
  • resourceFile - the name of the file, relative to the workingCopyDirectory, that should be loaded in to the IdP

...

  • connectionTimeout - length of time in milliseconds to wait for the SVN connection to be established - default: 3000 (3 seconds)
  • readTimeout - length of time in milliseconds to wait for the SVN checkout to complete - default: 5000 (5 seconds)
  • revision - The revision number, a positive integer, that should be retrieved. Revision dates and keywords (e.g. HEAD, PREV) are not supported. Omission of this attribute will cause the HEAD revision to be retrieved.
  • username - user name used to authenticate to the remote repository
  • password - password used to authentication to the remote repository
  • proxyHost - HTTP proxy used through which HTTP/HTTPS connections will be sent
  • proxyPort - HTTP proxy port through which HTTP/HTTPS connections will be sent
  • proxyUsername - username for the HTTP proxy server
  • proxyPassword - password for the HTTP proxy server
Code Block
xml
xml
titleExample Subversion Resourcexml
<EXAMPLE xsi:type="resource:SVNResource"
         repositoryURL="http://svn.example.org/myProject/some/path"
         workingCopyDirectory="/path/to/working/copy"
         resourceFile="project.xml"
         revision="513" />

...

This filter is defined using <ResourceFilter xsi:type="Chaining" xmlns="urn:mace:shibboleth:2.0:resource"> and may contain any number of child <ResourceFilter elements.

Code Block
xml
xml
titleExample Chaining Resource Filterxml
<ResourceFilter xsi:type="Chaining" xmlns="urn:mace:shibboleth:2.0:resource">
    <ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
                    propertyFile="/path/to/file1.properties"/>
    <ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
                    propertyFile="/path/to/file2.properties"/>
</ResourceFilter>

...

  • propertyFile - Path to the property file whose values will be used to replace the macros in the loaded input resource
Code Block
xml
xml
titleExample Property Replaced Resource Filterxml
<ResourceFilter xsi:type="PropertyReplacement" xmlns="urn:mace:shibboleth:2.0:resource"
                propertyFile="/path/to/file1.properties"/>