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
contains()
Parameters
- $certificate : \SetaPDF_Signer_X509_Certificate
findByIssuer()
public Collection::findByIssuer (
string $issuer,
bool $fullMatch = false
): \SetaPDF_Signer_X509_Collectionbool $fullMatch = false
Parameters
- $issuer : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
findBySubject()
public Collection::findBySubject (
string $subject,
bool $fullMatch = false
): \SetaPDF_Signer_X509_Collectionbool $fullMatch = false
Parameters
- $subject : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
findByValidAt()
Parameters
- $dateTime : \DateTimeInterface
- $timeZone : ?\DateTimeZone
Exceptions
Throws \setasign\SetaPDF2\Signer\Asn1\Exception
Throws \Exception
getBySerialNumber()
public Collection::getBySerialNumber (
string $serialNumber
): false|\SetaPDF_Signer_X509_CertificateParameters
- $serialNumber : string
The hex encoded serial number.
Exceptions
getBySubjectKeyIdentifier()
public Collection::getBySubjectKeyIdentifier (
string $subjectKeyIdentifier
): false|\SetaPDF_Signer_X509_CertificateParameters
- $subjectKeyIdentifier : string