ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
getGenerated ($property, $set) | |
This function is used to generate some metadata elements automatically. More... | |
getList ($set='saml20-idp-remote') | |
This function lists all known metadata in the given set. More... | |
getMetaDataCurrent ($set) | |
This function retrieves metadata for the current entity based on the hostname/path the request was directed to. More... | |
getMetaDataCurrentEntityID ($set, $type='entityid') | |
This function locates the current entity id based on the hostname/path combination the user accessed. More... | |
getPreferredEntityIdFromCIDRhint ($set, $ip) | |
This method will call getPreferredEntityIdFromCIDRhint() on all of the sources. More... | |
getMetaData ($index, $set) | |
This function looks up the metadata for the given entity id in the given set. More... | |
getMetaDataConfig ($entityId, $set) | |
Retrieve the metadata as a configuration object. More... | |
getMetaDataConfigForSha1 ($sha1, $set) | |
Search for an entity's metadata, given the SHA1 digest of its entity ID. More... | |
Static Public Member Functions | |
static | getMetadataHandler () |
This function retrieves the current instance of the metadata handler. More... | |
Protected Member Functions | |
__construct () | |
This constructor initializes this metadata storage handler. More... | |
Private Attributes | |
$sources | |
Static Private Attributes | |
static | $metadataHandler = null |
Definition at line 10 of file MetaDataStorageHandler.php.
|
protected |
This constructor initializes this metadata storage handler.
It will load and parse the configuration, and initialize the metadata source list.
Definition at line 54 of file MetaDataStorageHandler.php.
References $config, $type, array, SimpleSAML_Configuration\getInstance(), and SimpleSAML_Metadata_MetaDataStorageSource\parseSources().
SimpleSAML_Metadata_MetaDataStorageHandler::getGenerated | ( | $property, | |
$set | |||
) |
This function is used to generate some metadata elements automatically.
string | $property | The metadata property which should be auto-generated. |
string | $set | The set we the property comes from. |
Exception | If the metadata cannot be generated automatically. |
Definition at line 85 of file MetaDataStorageHandler.php.
References $baseurl, $config, SimpleSAML_Configuration\getInstance(), and getMetaDataCurrent().
SimpleSAML_Metadata_MetaDataStorageHandler::getList | ( | $set = 'saml20-idp-remote' | ) |
This function lists all known metadata in the given set.
It is returned as an associative array where the key is the entity id.
string | $set | The set we want to list metadata from. |
Definition at line 139 of file MetaDataStorageHandler.php.
References $key, $result, $source, array, time, and SimpleSAML\Logger\warning().
SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData | ( | $index, | |
$set | |||
) |
This function looks up the metadata for the given entity id in the given set.
It will throw an exception if it is unable to locate the metadata.
string | $index | The entity id we are looking up. This parameter may be NULL, in which case we look up the current entity id based on the current hostname/path. |
string | $set | The set of metadata we are looking up the entity id in. |
Exception | If metadata for the specified entity is expired. |
SimpleSAML_Error_MetadataNotFound | If no metadata for the entity specified can be found. |
Definition at line 269 of file MetaDataStorageHandler.php.
References $index, $metadata, $source, getMetaDataCurrentEntityID(), and time.
Referenced by getMetaDataConfig(), and getMetaDataCurrent().
SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig | ( | $entityId, | |
$set | |||
) |
Retrieve the metadata as a configuration object.
This function will throw an exception if it is unable to locate the metadata.
string | $entityId | The entity ID we are looking up. |
string | $set | The metadata set we are searching. |
SimpleSAML_Error_MetadataNotFound | If no metadata for the entity specified can be found. |
Definition at line 315 of file MetaDataStorageHandler.php.
References $entityId, $metadata, getMetaData(), and SimpleSAML_Configuration\loadFromArray().
SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfigForSha1 | ( | $sha1, | |
$set | |||
) |
Search for an entity's metadata, given the SHA1 digest of its entity ID.
string | $sha1 | The SHA1 digest of the entity ID. |
string | $set | The metadata set we are searching. |
Definition at line 334 of file MetaDataStorageHandler.php.
References $result, $source, array, and SimpleSAML_Configuration\loadFromArray().
SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataCurrent | ( | $set | ) |
This function retrieves metadata for the current entity based on the hostname/path the request was directed to.
It will throw an exception if it is unable to locate the metadata.
string | $set | The set we want metadata from. |
Definition at line 178 of file MetaDataStorageHandler.php.
References getMetaData().
Referenced by getGenerated().
SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataCurrentEntityID | ( | $set, | |
$type = 'entityid' |
|||
) |
This function locates the current entity id based on the hostname/path combination the user accessed.
It will throw an exception if it is unable to locate the entity id.
string | $set | The set we look for the entity id in. |
string | $type | Do you want to return the metaindex or the entityID. [entityid|metaindex] |
Exception | If no default metadata can be found in the set for the current host. |
Definition at line 194 of file MetaDataStorageHandler.php.
References $entityId, $index, $source, $type, SimpleSAML\Utils\HTTP\getSelfHost(), and SimpleSAML\Utils\HTTP\getSelfHostWithPath().
Referenced by getMetaData().
|
static |
This function retrieves the current instance of the metadata handler.
The metadata handler will be instantiated if this is the first call to this function.
Definition at line 40 of file MetaDataStorageHandler.php.
Referenced by ilSimpleSAMLphplIdpDiscovery\__construct(), SimpleSAML_IdP\__construct(), SimpleSAML_XHTML_IdPDisco\__construct(), sspmod_saml_Auth_Source_SP\authenticate(), SimpleSAML\XML\Shib13\AuthnRequest\createRedirect(), sspmod_saml_IdP_SAML2\getAssociationConfig(), sspmod_saml_Auth_Source_SP\getIdPMetadata(), sspmod_adfs_IdP_ADFS\getLogoutURL(), sspmod_saml_IdP_SAML2\getLogoutURL(), sspmod_statistics_Statistics_FieldPresentation_Entity\getPresentation(), SimpleSAML\XML\Shib13\AuthnResponse\getSessionIndex(), SimpleSAML_IdP\getSPName(), sspmod_consent_Auth_Process_Consent\process(), sspmod_saml_Auth_Source_SP\reauthenticate(), sspmod_adfs_IdP_ADFS\receiveAuthnRequest(), sspmod_saml_IdP_SAML1\receiveAuthnRequest(), sspmod_saml_IdP_SAML2\receiveAuthnRequest(), sspmod_saml_IdP_SAML2\receiveLogoutMessage(), SAML2\HTTPArtifact\send(), sspmod_saml_IdP_SAML2\sendLogoutRequest(), sspmod_adfs_IdP_ADFS\sendLogoutResponse(), sspmod_saml_IdP_SAML2\sendLogoutResponse(), sspmod_saml_IdP_SAML1\sendResponse(), and SimpleSAML\XML\Shib13\AuthnResponse\validate().
SimpleSAML_Metadata_MetaDataStorageHandler::getPreferredEntityIdFromCIDRhint | ( | $set, | |
$ip | |||
) |
This method will call getPreferredEntityIdFromCIDRhint() on all of the sources.
string | $set | Which set of metadata we are looking it up in. |
string | $ip | IP address |
Definition at line 244 of file MetaDataStorageHandler.php.
References $entityId, and $source.
|
staticprivate |
Definition at line 21 of file MetaDataStorageHandler.php.
|
private |
Definition at line 30 of file MetaDataStorageHandler.php.