SetaPDF_Signer_X509_Collection Class representing a collection of X509 certificates.

File: /SetaPDF v2/Signer/X509/Collection.php

Class hierarchy

Implements

Summary

Properties


Methods

_getCollectionItems()

Get all items which are not direct certificates but implement the CollectionInterface.

addFromFile()

public SetaPDF_Signer_X509_Collection::addFromFile (
string $path
): $this

Add a certificate from a path.

Parameters
$path : string
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

contains()

count()

Count all items.

Notice: that this method collects ALL items to count only unique elements.

findByCallback()

Find all certificates by a callback.

Parameters
$callback : callable
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

findByIssuer()

public SetaPDF_Signer_X509_Collection::findByIssuer (
string $issuer [, bool $fullMatch = false ]
): SetaPDF_Signer_X509_Collection

Parameters
$issuer : string
 
$fullMatch : bool

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

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

Throws SetaPDF_Signer_Exception

findBySubject()

public SetaPDF_Signer_X509_Collection::findBySubject (
string $subject [, bool $fullMatch = false ]
): SetaPDF_Signer_X509_Collection

Parameters
$subject : string
 
$fullMatch : bool

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

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

findByValidAt()

Parameters
$dateTime : DateTimeInterface
 
$timeZone : DateTimeZone|null
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

Throws Exception

getAll()

getBySerialNumber()

Parameters
$serialNumber : string

The hex encoded serial number.

Exceptions

Throws SetaPDF_Signer_Exception

getBySubjectKeyIdentifier()

Parameters
$subjectKeyIdentifier : string
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception