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