- 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
- \SAML2\Certificate\FingerprintCollection
- Deprecated:
Definition at line 38 of file FingerprintLoader.php.
39 {
41 if (!is_array($fingerprints) && !$fingerprints instanceof \Traversable) {
43 'array or instanceof \Traversable',
44 $fingerprints
45 );
46 }
47
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',
53 $fingerprint
54 );
55 }
56
57 $collection->add(new Fingerprint((string) $fingerprint));
58 }
59
60 return $collection;
61 }
static invalidType($expected, $parameter)
getCertificateFingerprints()
Returns an array or \Traversable where each element represents a certificate fingerprint.
References SAML2\Configuration\CertificateProvider\getCertificateFingerprints(), and SAML2\Exception\InvalidArgumentException\invalidType().
◆ 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
- \SAML2\Certificate\FingerprintCollection
- Deprecated:
Definition at line 22 of file FingerprintLoader.php.
23 {
24 $loader = new self();
25
26 return $loader->loadFingerprints($configuration);
27 }
The documentation for this class was generated from the following file: