|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for SAML2\Certificate\KeyLoader:Public Member Functions | |
| __construct () | |
| loadKeysFromConfiguration (CertificateProvider $config, $usage=null, $required=false) | |
| loadKeys (array $configuredKeys, $usage) | |
| Loads the keys given, optionally excluding keys when a usage is given and they are not configured to be used with the usage given. More... | |
| loadCertificateData ($certificateData) | |
| Attempts to load a key based on the given certificateData. More... | |
| loadCertificateFile ($certificateFile) | |
| Loads the certificate in the file given. More... | |
| getKeys () | |
| hasKeys () | |
Static Public Member Functions | |
| static | extractPublicKeys (CertificateProvider $config, $usage=null, $required=false) |
| Extracts the public keys given by the configuration. More... | |
Private Attributes | |
| $loadedKeys | |
Definition at line 15 of file KeyLoader.php.
| SAML2\Certificate\KeyLoader::__construct | ( | ) |
Definition at line 22 of file KeyLoader.php.
|
static |
Extracts the public keys given by the configuration.
Mainly exists for BC purposes. Prioritisation order is keys > certData > certificate
| \SAML2\Configuration\CertificateProvider | $config | |
| null | $usage | |
| bool | $required |
Definition at line 37 of file KeyLoader.php.
References $config.
| SAML2\Certificate\KeyLoader::getKeys | ( | ) |
Definition at line 143 of file KeyLoader.php.
References SAML2\Certificate\KeyLoader\$loadedKeys.
Referenced by SAML2\Certificate\KeyLoader\loadKeysFromConfiguration().
Here is the caller graph for this function:| SAML2\Certificate\KeyLoader::hasKeys | ( | ) |
Definition at line 151 of file KeyLoader.php.
Referenced by SAML2\Certificate\KeyLoader\loadKeysFromConfiguration().
Here is the caller graph for this function:| SAML2\Certificate\KeyLoader::loadCertificateData | ( | $certificateData | ) |
Attempts to load a key based on the given certificateData.
| string | $certificateData |
Definition at line 110 of file KeyLoader.php.
References SAML2\Certificate\X509\createFromCertificateData(), and SAML2\Exception\InvalidArgumentException\invalidType().
Referenced by SAML2\Certificate\KeyLoader\loadKeysFromConfiguration().
Here is the call graph for this function:
Here is the caller graph for this function:| SAML2\Certificate\KeyLoader::loadCertificateFile | ( | $certificateFile | ) |
Loads the certificate in the file given.
| string | $certificateFile | the full path to the cert file. |
Definition at line 124 of file KeyLoader.php.
References $certificate, SAML2\Utilities\Certificate\CERTIFICATE_PATTERN, SAML2\Certificate\X509\createFromCertificateData(), SAML2\Utilities\File\getFileContents(), SAML2\Utilities\Certificate\hasValidStructure(), and sprintf.
Referenced by SAML2\Certificate\KeyLoader\loadKeysFromConfiguration().
Here is the call graph for this function:
Here is the caller graph for this function:| SAML2\Certificate\KeyLoader::loadKeys | ( | array | $configuredKeys, |
| $usage | |||
| ) |
Loads the keys given, optionally excluding keys when a usage is given and they are not configured to be used with the usage given.
| array | $configuredKeys | |
| $usage |
Definition at line 88 of file KeyLoader.php.
References $key.
Referenced by SAML2\Certificate\KeyLoader\loadKeysFromConfiguration().
Here is the caller graph for this function:| SAML2\Certificate\KeyLoader::loadKeysFromConfiguration | ( | CertificateProvider | $config, |
$usage = null, |
|||
$required = false |
|||
| ) |
| \SAML2\Configuration\CertificateProvider | $config | |
| null | string | $usage | |
| bool | $required |
Definition at line 54 of file KeyLoader.php.
References $config, $keys, SAML2\Certificate\KeyLoader\getKeys(), SAML2\Certificate\KeyLoader\hasKeys(), SAML2\Certificate\KeyLoader\loadCertificateData(), SAML2\Certificate\KeyLoader\loadCertificateFile(), and SAML2\Certificate\KeyLoader\loadKeys().
Here is the call graph for this function:
|
private |
Definition at line 20 of file KeyLoader.php.
Referenced by SAML2\Certificate\KeyLoader\getKeys().