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

Implemented in

Implements

Summary

Methods

contains()

abstract public CollectionInterface::contains (
Certificate $certificate
): bool

Checks if this collection contains the given certificate.

Parameters
$certificate : Certificate
 

count()

Internal PHP method: Countable::count

findByIssuer()

abstract public CollectionInterface::findByIssuer (
string $issuer,
bool $fullMatch = false
): self

Get all certificates by a issuer name.

Parameters
$issuer : string
 
$fullMatch : bool

Whether only a substring matched or the whole subject should be compared.

findBySubject()

abstract public CollectionInterface::findBySubject (
string $subject,
bool $fullMatch = false
): self

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()

abstract public CollectionInterface::findByValidAt (
\DateTimeInterface $dateTime,
?\DateTimeZone $timeZone = null
): self

Find all valid certificates by date and time.

Parameters
$dateTime : \DateTimeInterface
 
$timeZone : ?\DateTimeZone
 
Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

Throws \Exception

getAll()

abstract public CollectionInterface::getAll (
void
): Certificate[]

Get all certificates.

getBySerialNumber()

abstract public CollectionInterface::getBySerialNumber (
string $serialNumber
): false|Certificate

Get a certificate by a serial number.

Parameters
$serialNumber : string

The hex encoded serial number.

getBySubjectKeyIdentifier()

abstract public CollectionInterface::getBySubjectKeyIdentifier (
string $subjectKeyIdentifier
): false|Certificate

Get certificate by subject key identifier.

Parameters
$subjectKeyIdentifier : string