ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\Certificate\FingerprintLoader Class Reference
+ Collaboration diagram for SAML2\Certificate\FingerprintLoader:

Public Member Functions

 loadFingerprints (CertificateProvider $configuration)
 Loads the fingerprints from a configurationValue. More...
 

Static Public Member Functions

static loadFromConfiguration (CertificateProvider $configuration)
 Static method mainly for BC, should be replaced with DI. More...
 

Detailed Description

Deprecated:
Please load full certificates instead.

Definition at line 11 of file FingerprintLoader.php.

Member Function Documentation

◆ loadFingerprints()

SAML2\Certificate\FingerprintLoader::loadFingerprints ( CertificateProvider  $configuration)

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().

39  {
40  $fingerprints = $configuration->getCertificateFingerprints();
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  }
+ Here is the call graph for this function:

◆ 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.

23  {
24  $loader = new self();
25 
26  return $loader->loadFingerprints($configuration);
27  }

The documentation for this class was generated from the following file: