ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($expire=null, $stateFile=null, $oldMetadataSrc=null) | |
Constructor. More... | |
getTypes () | |
Get the types of entities that will be loaded. More... | |
setTypes ($types) | |
Set the types of entities that will be loaded. More... | |
loadSource ($source) | |
This function processes a SAML metadata file. More... | |
writeState () | |
This function writes the state array back to disk. More... | |
dumpMetadataStdOut () | |
This function writes the metadata to stdout. More... | |
writeARPfile ($config) | |
This function writes the metadata to an ARP file. More... | |
writeMetadataFiles ($outputDir) | |
This function writes the metadata to to separate files in the output directory. More... | |
writeMetadataSerialize ($outputDir) | |
Save metadata for loading with the 'serialize' metadata loader. More... | |
Private Member Functions | |
createContext ($source) | |
Create HTTP context, with any available caches taken into account. More... | |
addCachedMetadata ($source) | |
saveState ($source, $responseHeaders) | |
Store caching state data for a source. More... | |
loadXML ($data, $source) | |
Parse XML metadata and return entities. More... | |
addMetadata ($filename, $metadata, $type, $template=null) | |
This function adds metadata from the specified file to the list of metadata. More... | |
getTime () | |
Private Attributes | |
$expire | |
$metadata | |
$oldMetadataSrc | |
$stateFile | |
$changed | |
$state | |
$types | |
Definition at line 6 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::__construct | ( | $expire = null , |
|
$stateFile = null , |
|||
$oldMetadataSrc = null |
|||
) |
Constructor.
integer | $expire | |
string | $stateFile | |
object | $oldMetadataSrc |
Definition at line 30 of file MetaLoader.php.
References $expire, $oldMetadataSrc, and $stateFile.
|
private |
Definition at line 221 of file MetaLoader.php.
References $source, $type, and addMetadata().
Referenced by loadSource().
|
private |
This function adds metadata from the specified file to the list of metadata.
This function will return without making any changes if $metadata is NULL.
$filename | The filename the metadata comes from. |
$metadata | The metadata. |
$type | The metadata type. |
Definition at line 330 of file MetaLoader.php.
Referenced by addCachedMetadata(), and loadSource().
|
private |
Create HTTP context, with any available caches taken into account.
Definition at line 195 of file MetaLoader.php.
References $config, $name, $source, and SimpleSAML_Configuration\getInstance().
Referenced by loadSource().
sspmod_metarefresh_MetaLoader::dumpMetadataStdOut | ( | ) |
This function writes the metadata to stdout.
Definition at line 300 of file MetaLoader.php.
References $filename, $m, and getTime().
|
private |
Definition at line 492 of file MetaLoader.php.
Referenced by dumpMetadataStdOut(), saveState(), and writeState().
sspmod_metarefresh_MetaLoader::getTypes | ( | ) |
Get the types of entities that will be loaded.
Definition at line 53 of file MetaLoader.php.
References $types.
sspmod_metarefresh_MetaLoader::loadSource | ( | $source | ) |
This function processes a SAML metadata file.
$source |
Definition at line 79 of file MetaLoader.php.
References $context, $data, $source, $template, addCachedMetadata(), addMetadata(), createContext(), SimpleSAML\Logger\debug(), SimpleSAML\Utils\HTTP\fetch(), SimpleSAML\Logger\info(), loadXML(), saveState(), and SimpleSAML\Logger\warning().
|
private |
Parse XML metadata and return entities.
Definition at line 265 of file MetaLoader.php.
References $data, $source, SAML2\DOMDocumentFactory\fromString(), and SimpleSAML_Metadata_SAMLParser\parseDescriptorsElement().
Referenced by loadSource().
|
private |
Store caching state data for a source.
Definition at line 240 of file MetaLoader.php.
References $source, and getTime().
Referenced by loadSource().
sspmod_metarefresh_MetaLoader::setTypes | ( | $types | ) |
Set the types of entities that will be loaded.
string | array | $types | Either a string with the name of one single type allowed, or an array with a list of types. Pass an empty array to reset to all types of entities. |
Definition at line 65 of file MetaLoader.php.
References $types.
sspmod_metarefresh_MetaLoader::writeARPfile | ( | $config | ) |
This function writes the metadata to an ARP file.
Definition at line 366 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeMetadataFiles | ( | $outputDir | ) |
This function writes the metadata to to separate files in the output directory.
Definition at line 399 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeMetadataSerialize | ( | $outputDir | ) |
Save metadata for loading with the 'serialize' metadata loader.
string | $outputDir | The directory we should save the metadata to. |
Definition at line 448 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeState | ( | ) |
This function writes the state array back to disk.
Definition at line 282 of file MetaLoader.php.
References SimpleSAML\Logger\debug(), getTime(), and SimpleSAML\Utils\System\writeFile().
|
private |
Definition at line 12 of file MetaLoader.php.
|
private |
Definition at line 8 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 9 of file MetaLoader.php.
|
private |
Definition at line 10 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 13 of file MetaLoader.php.
|
private |
Definition at line 11 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 14 of file MetaLoader.php.
Referenced by getTypes(), and setTypes().