setasign\SetaPDF2\Signer\X509
CollectionInterface Interface representing a collection of X509 certificates.
File: /SetaPDF v2/Signer/X509/CollectionInterface.php
Old class name (alias):
\SetaPDF_Signer_X509_CollectionInterface
Beside this interface a "complete" collection implementation should also implement following interfaces:
They are not part of this interface because of backwards-compatibility.
Implemented in
Implements
Summary
Methods
contains()
count()
Internal PHP method: Countable::count
findByIssuer()
Get all certificates by an issuer name.
Parameters
- $issuer: string
- $fullMatch: bool
Whether only a substring matched or the whole subject should be compared.
findBySubject()
bool $fullMatch = false
Get all certificates by a subject name.
Parameters
- $subject: string
- $fullMatch: bool
Whether only a substring matched or the whole subject should be compared.
findByValidAt()
Find all valid certificates by date and time.
Parameters
- $dateTime: \DateTimeInterface
- $timeZone: ?\DateTimeZone
Exceptions
Throws \setasign\SetaPDF2\Signer\Asn1\Exception
Throws \Exception
getBySerialNumber()
Get a certificate by a serial number.
Parameters
- $serialNumber: string
The hex encoded serial number.
getBySubjectKeyIdentifier()
WARNING: This method is marked as deprecated!
Use Collection\FindBySubjectKeyIdentifierInterface::findBySubjectKeyIdentifier() instead.
Get certificate by subject key identifier.
Parameters
- $subjectKeyIdentifier: string
