35 $src = $srcXml = null;
36 if (array_key_exists(
'file',
$config)) {
40 } elseif (array_key_exists(
'url',
$config)) {
42 } elseif (array_key_exists(
'xml',
$config)) {
45 throw new Exception(
"Missing one of 'file', 'url' and 'xml' in XML metadata source configuration.");
57 } elseif(isset($srcXml)) {
60 throw new Exception(
"Neither source file path/URI nor string data provided");
62 foreach ($entities as
$entityId => $entity) {
63 $md = $entity->getMetadata1xSP();
68 $md = $entity->getMetadata1xIdP();
73 $md = $entity->getMetadata20SP();
78 $md = $entity->getMetadata20IdP();
83 $md = $entity->getAttributeAuthorities();
89 $this->metadata = array(
90 'shib13-sp-remote' => $SP1x,
91 'shib13-idp-remote' => $IdP1x,
92 'saml20-sp-remote' => $SP20,
93 'saml20-idp-remote' => $IdP20,
94 'attributeauthority-remote' => $AAD,
109 if (array_key_exists($set, $this->metadata)) {
110 return $this->metadata[$set];
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.