SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig PHP Method

getMetaDataConfig() public method

This function will throw an exception if it is unable to locate the metadata.
public getMetaDataConfig ( string $entityId, string $set ) : SimpleSAML_Configuration
$entityId string The entity ID we are looking up.
$set string The metadata set we are searching.
return SimpleSAML_Configuration The configuration object representing the metadata.
    public function getMetaDataConfig($entityId, $set)
    {
        assert('is_string($entityId)');
        assert('is_string($set)');
        $metadata = $this->getMetaData($entityId, $set);
        return SimpleSAML_Configuration::loadFromArray($metadata, $set . '/' . var_export($entityId, true));
    }