26 return $loader->loadFingerprints($configuration);
41 if (!is_array($fingerprints) && !$fingerprints instanceof \Traversable) {
43 'array or instanceof \Traversable',
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)
CertificateProvider interface.
static loadFromConfiguration(CertificateProvider $configuration)
Static method mainly for BC, should be replaced with DI.
loadFingerprints(CertificateProvider $configuration)
Loads the fingerprints from a configurationValue.
getCertificateFingerprints()
Returns an array or where each element represents a certificate fingerprint.
Simple collection object for transporting keys.
Simple representation of the fingerprint of a certificate.