SetaPDF_Signer_X509_Collection Class representing a collection of X509 certificates.
File: /SetaPDF v2/Signer/X509/Collection.php
Class hierarchy
Implements
Summary
Properties
$_items
All items.
Methods
__construct()
The constructor.
Parameters
- $certificates : null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
Exceptions
_getCollectionItems()
Get all items which are not direct certificates but implement the CollectionInterface.
add()
Add a certificate, certificates or collections.
Parameters
- $certificates : string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
Exceptions
contains()
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
findByCallback()
Find all certificates by a callback.
Parameters
- $callback : callable
Exceptions
findByIssuer()
Parameters
- $issuer : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
findBySubject()
Parameters
- $subject : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
findByValidAt()
Parameters
- $dateTime : DateTimeInterface
- $timeZone : DateTimeZone|null
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws Exception
getBySerialNumber()
Parameters
- $serialNumber : string
The hex encoded serial number.
Exceptions
Throws SetaPDF_Signer_Exception
getBySubjectKeyIdentifier()
Parameters
- $subjectKeyIdentifier : string