ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FingerprintCollection.php
Go to the documentation of this file.
1<?php
2
3namespace 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}
An exception for terminatinating execution or to throw for unit testing.
Simple collection object for transporting keys.
add($fingerprint)
Add a key to the collection.
Simple representation of the fingerprint of a certificate.
Definition: Fingerprint.php:13
Simple Array implementation of Collection.
add()
Definition: add.php:2