ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FingerprintCollection.php
Go to the documentation of this file.
1 <?php
2 
3 namespace SAML2\Certificate;
4 
7 
13 {
21  public function add($fingerprint)
22  {
23  if (!$fingerprint instanceof Fingerprint) {
25  'SAML2\Certificate\Fingerprint ',
26  $fingerprint
27  );
28  }
29 
30  parent::add($fingerprint);
31  }
32 
40  public function contains(Fingerprint $otherFingerprint)
41  {
42  foreach ($this->elements as $fingerprint) {
44  if ($fingerprint->equals($otherFingerprint)) {
45  return true;
46  }
47  }
48 
49  return false;
50  }
51 }
add($fingerprint)
Add a key to the collection.
add()
Definition: add.php:2
Simple Array implementation of Collection.
Simple collection object for transporting keys.
Simple representation of the fingerprint of a certificate.
Definition: Fingerprint.php:12