setasign\SetaPDF2\Signer\X509
Chain Helper class to build certificate paths.
File: /SetaPDF v2/Signer/X509/Chain.php
Old class name (alias):
\SetaPDF_Signer_X509_Chain
Class hierarchy
Summary
Properties
$_extraCertificates
protected Collection Chain::$_extraCertificates
The extra certificates.
$_trustedCertificates
protected Collection Chain::$_trustedCertificates
The trusted certificates.
Methods
__construct()
public Chain::__construct (
null|string|Certificate|Certificate[]|CollectionInterface $trustedCertificates = null
)The constructor.
Parameters
- $trustedCertificates : null|string|Certificate|Certificate[]|CollectionInterface
$trustedCertificates
Exceptions
_buildPaths()
Build all possible paths.
Parameters
- $certificate : Certificate
- $paths : string[]
- $currentPath : Certificate[]
Exceptions
_findIssuer()
Find issuers by a certificate.
Parameters
- $certificate : Certificate
Exceptions
buildPath()
Build a valid certificate path.
Parameters
- $certificate : Certificate
- $dateTime : ?\DateTimeInterface
If a date time is given only certificates which are valid at this will be part of the path.
- $timeZone : ?\DateTimeZone
Exceptions
buildPaths()
Build all possible paths.
Parameters
- $certificate : Certificate
Exceptions
getLogger()
Get the logger instance.
If no logger instance was passed before a new instance of \setasign\SetaPDF2\Signer\ValidationRelatedInfo\Logger is returned.