setasign\SetaPDF2\Signer\X509
Collection Class representing a collection of X509 certificates.
File: /SetaPDF v2/Signer/X509/Collection.php
Old class name (alias):
\SetaPDF_Signer_X509_Collection
Class hierarchy
Implements
Summary
Properties
Methods
__construct()
public Collection::__construct (
null|string|Certificate|Certificate[]|CollectionInterface $certificates = null
)The constructor.
Parameters
- $certificates : null|string|Certificate|Certificate[]|CollectionInterface
Exceptions
_getCollectionItems()
Get all items which are not direct certificates but implement the CollectionInterface.
add()
public Collection::add (
string|string[]|Certificate|Certificate[]|CollectionInterface $certificates
): $thisAdd a certificate, certificates or collections.
Parameters
- $certificates : string|string[]|Certificate|Certificate[]|CollectionInterface
Exceptions
findByIssuer()
Parameters
- $issuer : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
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