- Deprecated:
- Please load full certificates instead.
Definition at line 11 of file FingerprintLoader.php.
◆ loadFingerprints()
Loads the fingerprints from a configurationValue.
- Parameters
-
\SAML2\Configuration\CertificateProvider | $configuration | |
- Returns
- Deprecated:
Definition at line 38 of file FingerprintLoader.php.
References SAML2\Configuration\CertificateProvider\getCertificateFingerprints(), and SAML2\Exception\InvalidArgumentException\invalidType().
40 $fingerprints = $configuration->getCertificateFingerprints();
41 if (!is_array($fingerprints) && !$fingerprints instanceof \Traversable) {
43 'array or instanceof \Traversable',
48 $collection =
new FingerprintCollection();
49 foreach ($fingerprints as $fingerprint) {
50 if (!is_string($fingerprint) && !(is_object($fingerprint) && method_exists($fingerprint,
'__toString'))) {
52 'fingerprint as string or object that can be casted to string',
57 $collection->add(
new Fingerprint((
string) $fingerprint));
static invalidType($expected, $parameter)
◆ loadFromConfiguration()
static SAML2\Certificate\FingerprintLoader::loadFromConfiguration |
( |
CertificateProvider |
$configuration | ) |
|
|
static |
Static method mainly for BC, should be replaced with DI.
- Parameters
-
\SAML2\Configuration\CertificateProvider | $configuration | |
- Returns
- Deprecated:
Definition at line 22 of file FingerprintLoader.php.
26 return $loader->loadFingerprints($configuration);
The documentation for this class was generated from the following file: