* The fingerprint of the certificate used to sign the metadata. You don't need this option if you don't want to validate the signature on the metadata.
* The fingerprint of the certificate used to sign the metadata. You don't need this option if you don't want to
* validate the signature on the metadata.
*
* @var string|null
*/
private$validateFingerprint;
/**
* The cache directory, or NULL if no cache directory is configured.
*/
private$cacheDir;
/**
* The cache directory, or null if no cache directory is configured.
*
* @var string|null
*/
private$cacheDir;
/**
* The maximum cache length, in seconds.
*/
private$cacheLength;
/**
* The maximum cache length, in seconds.
*
* @var integer
*/
private$cacheLength;
/**
* This function initializes the dynamic XML metadata source.
*
* Options:
* - 'server': URL of the MDX server (url:port). Mandatory.
/**
* This function initializes the dynamic XML metadata source.
*
* Options:
* - 'server': URL of the MDX server (url:port). Mandatory.
* - 'validateFingerprint': The fingerprint of the certificate used to sign the metadata.
* You don't need this option if you don't want to validate the signature on the metadata. Optional.
* - 'cachedir': Directory where metadata can be cached. Optional.
* - 'cachelength': Maximum time metadata cah be cached, in seconds. Default to 24
* hours (86400 seconds).
*
* @param array $config The configuration for this instance of the XML metadata source.
* @throws Exception If no server option can be found in the configuration.
*/
protectedfunction__construct($config){
assert('is_array($config)');
if(!array_key_exists('server',$config)){
thrownewException("The 'server' configuration option is not set.");