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()
protected Chain::_findIssuer (
\SetaPDF_Signer_X509_Certificate $certificate
): \SetaPDF_Signer_X509_CollectionFind issuers by a certificate.
Parameters
- $certificate : \SetaPDF_Signer_X509_Certificate
Exceptions
buildPath()
public Chain::buildPath (
\SetaPDF_Signer_X509_Certificate $certificate,
?\DateTimeInterface $dateTime = null,
?\DateTimeZone $timeZone = null
): false|\SetaPDF_Signer_X509_Certificate[]?\DateTimeInterface $dateTime = null,
?\DateTimeZone $timeZone = null
Build a valid certificate path.
Parameters
- $certificate : \SetaPDF_Signer_X509_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
Throws \setasign\SetaPDF2\Signer\Asn1\Exception
Throws \Exception
buildPaths()
public Chain::buildPaths (
\SetaPDF_Signer_X509_Certificate $certificate
): \SetaPDF_Signer_X509_Certificate[]Build all possible paths.
Parameters
- $certificate : \SetaPDF_Signer_X509_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.