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
- \Countable
- CollectionInterface
- Collection\FindByKeyHashInterface
- Collection\FindBySubjectKeyIdentifierInterface
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
findByKeyHash()
Get all certificates with the matching key hash (sha-1 hash of the public key).
Parameters
- $keyHash: string
Exceptions
findBySubject()
Parameters
- $subject: string
- $fullMatch: bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
findBySubjectKeyIdentifier()
Get all certificates with the subject key identifier.
Parameters
- $subjectKeyIdentifier: string
Exceptions
findByValidAt()
Parameters
- $dateTime: \DateTimeInterface
- $timeZone: ?\DateTimeZone
