SetaPDF_Signer_X509_Collection Class representing a collection of X509 certificates.
File: /SetaPDF v2/Signer/X509/Collection.php
Class hierarchy
Implements
Summary
Properties
$_items
protected SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface[] SetaPDF_Signer_X509_Collection::$_items = array()
All items.
Methods
__construct()
public SetaPDF_Signer_X509_Collection::__construct (
[ null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface $certificates = null ]
)The constructor.
Parameters
- $certificates : null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
Exceptions
_getCollectionItems()
protected SetaPDF_Signer_X509_Collection::_getCollectionItems (
void
): SetaPDF_Signer_X509_CollectionInterface[]Get all items which are not direct certificates but implement the CollectionInterface.
add()
public SetaPDF_Signer_X509_Collection::add (
string|string[]|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface $certificates
): $thisAdd a certificate, certificates or collections.
Parameters
- $certificates : string|string[]|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
Exceptions
contains()
public SetaPDF_Signer_X509_Collection::contains (
SetaPDF_Signer_X509_Certificate $certificate
): boolParameters
- $certificate : SetaPDF_Signer_X509_Certificate
findByCallback()
public SetaPDF_Signer_X509_Collection::findByCallback (
callable $callback
): SetaPDF_Signer_X509_CollectionFind all certificates by a callback.
Parameters
- $callback : callable
Exceptions
findByIssuer()
public SetaPDF_Signer_X509_Collection::findByIssuer (
string $issuer [, bool $fullMatch = false ]
): SetaPDF_Signer_X509_CollectionParameters
- $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_CollectionParameters
- $subject : string
- $fullMatch : bool
Whether only a substring matched or the whole subject should be compared.
Exceptions
findByValidAt()
public SetaPDF_Signer_X509_Collection::findByValidAt (
DateTimeInterface $dateTime [, DateTimeZone|null $timeZone = null ]
): SetaPDF_Signer_X509_CollectionParameters
- $dateTime : DateTimeInterface
- $timeZone : DateTimeZone|null
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws Exception
getBySerialNumber()
public SetaPDF_Signer_X509_Collection::getBySerialNumber (
string $serialNumber
): false|SetaPDF_Signer_X509_CertificateParameters
- $serialNumber : string
The hex encoded serial number.
Exceptions
Throws SetaPDF_Signer_Exception
getBySubjectKeyIdentifier()
public SetaPDF_Signer_X509_Collection::getBySubjectKeyIdentifier (
string $subjectKeyIdentifier
): false|SetaPDF_Signer_X509_CertificateParameters
- $subjectKeyIdentifier : string