SetaPDF_Signer_X509_CollectionInterface Interface representing a collection of X509 certificates.
File: /SetaPDF v2/Signer/X509/CollectionInterface.php
Implemented in
Implements
Summary
Methods
contains()
abstract public SetaPDF_Signer_X509_CollectionInterface::contains (
SetaPDF_Signer_X509_Certificate $certificate
): boolChecks if this collection contains the given certificate.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
count()
Internal PHP method: Countable::count
findByIssuer()
abstract public SetaPDF_Signer_X509_CollectionInterface::findByIssuer (
string $issuer [, bool $fullMatch = false ]
): SetaPDF_Signer_X509_CollectionInterfaceGet 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 SetaPDF_Signer_X509_CollectionInterface::findBySubject (
string $subject [, bool $fullMatch = false ]
): SetaPDF_Signer_X509_CollectionInterfaceGet 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 SetaPDF_Signer_X509_CollectionInterface::findByValidAt (
DateTimeInterface $dateTime [, DateTimeZone|null $timeZone = null ]
): SetaPDF_Signer_X509_CollectionInterfaceFind all valid certificates by date and time.
Parameters
- $dateTime : DateTimeInterface
- $timeZone : DateTimeZone|null
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws Exception
getAll()
abstract public SetaPDF_Signer_X509_CollectionInterface::getAll (
void
): SetaPDF_Signer_X509_Certificate[]Get all certificates.
getBySerialNumber()
abstract public SetaPDF_Signer_X509_CollectionInterface::getBySerialNumber (
string $serialNumber
): false|SetaPDF_Signer_X509_CertificateGet a certificate by a serial number.
Parameters
- $serialNumber : string
The hex encoded serial number.
getBySubjectKeyIdentifier()
abstract public SetaPDF_Signer_X509_CollectionInterface::getBySubjectKeyIdentifier (
string $subjectKeyIdentifier
): false|SetaPDF_Signer_X509_CertificateGet certificate by subject key identifier.
Parameters
- $subjectKeyIdentifier : string