|
| getMetadataSet ($set) |
| This function returns an associative array with metadata for all entities in the given set. More...
|
|
| getMetadataSet ($set) |
| This function attempts to generate an associative array with metadata for all entities in the given set. More...
|
|
| getEntityIdFromHostPath ($hostPath, $set, $type='entityid') |
| This function resolves an host/path combination to an entity id. More...
|
|
| getPreferredEntityIdFromCIDRhint ($set, $ip, $type='entityid') |
| This function will go through all the metadata, and check the DiscoHints->IPHint parameter, which defines a network space (ip range) for each remote entry. More...
|
|
| getMetaData ($index, $set) |
| This function retrieves metadata for the given entity id in the given set of metadata. More...
|
|
|
static | parseSources ($sourcesConfig) |
| Parse array with metadata sources. More...
|
|
static | getSource ($sourceConfig) |
| This function creates a metadata source based on the given configuration. More...
|
|
◆ __construct()
SimpleSAML_Metadata_MetaDataStorageHandlerXML::__construct |
( |
|
$config | ) |
|
|
protected |
This function initializes the XML metadata source.
The configuration must contain one of the following options:
- 'file': Path to a file with the metadata. This path is relative to the SimpleSAMLphp base directory.
- 'url': URL we should download the metadata from. This is only meant for testing.
- Parameters
-
array | $config | The configuration for this instance of the XML metadata source. |
- Exceptions
-
Exception | If neither the 'file' or 'url' options are defined in the configuration. |
Definition at line 33 of file MetaDataStorageHandlerXML.php.
References $config, $entityId, $globalConfig, SimpleSAML_Configuration\getInstance(), SimpleSAML_Metadata_SAMLParser\parseDescriptorsFile(), and SimpleSAML_Metadata_SAMLParser\parseDescriptorsString().
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,
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
◆ getMetadataSet()
SimpleSAML_Metadata_MetaDataStorageHandlerXML::getMetadataSet |
( |
|
$set | ) |
|
This function returns an associative array with metadata for all entities in the given set.
The key of the array is the entity id.
- Parameters
-
string | $set | The set we want to list metadata for. |
- Returns
- array An associative array with all entities in the given set.
Definition at line 107 of file MetaDataStorageHandlerXML.php.
109 if (array_key_exists($set, $this->metadata)) {
110 return $this->metadata[$set];
◆ $metadata
SimpleSAML_Metadata_MetaDataStorageHandlerXML::$metadata |
|
private |
The documentation for this class was generated from the following file: