|
| 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 hint.cidr 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, array, SimpleSAML_Configuration\getInstance(), and SimpleSAML_Metadata_SAMLParser\parseDescriptorsFile().
38 if (array_key_exists(
'file',
$config)) {
40 } elseif (array_key_exists(
'url',
$config)) {
43 throw new Exception(
"Missing either 'file' or 'url' in XML metadata source configuration.");
54 foreach ($entities as
$entityId => $entity) {
56 $md = $entity->getMetadata1xSP();
61 $md = $entity->getMetadata1xIdP();
66 $md = $entity->getMetadata20SP();
71 $md = $entity->getMetadata20IdP();
76 $md = $entity->getAttributeAuthorities();
82 $this->metadata =
array(
83 'shib13-sp-remote' => $SP1x,
84 'shib13-idp-remote' => $IdP1x,
85 'saml20-sp-remote' => $SP20,
86 'saml20-idp-remote' => $IdP20,
87 'attributeauthority-remote' => $AAD,
Create styles array
The data for the language used.
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 100 of file MetaDataStorageHandlerXML.php.
References array.
102 if (array_key_exists($set, $this->metadata)) {
103 return $this->metadata[$set];
Create styles array
The data for the language used.
◆ $metadata
SimpleSAML_Metadata_MetaDataStorageHandlerXML::$metadata |
|
private |
The documentation for this class was generated from the following file: