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
The extra certificates.
$_trustedCertificates
The trusted certificates.
Methods
__construct()
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
getAllowTrustedIntermediateCertificatesAsTrustAnchor()
Get whether intermediate certificates can be seen as trusted anchors or not.
getLogger()
Get the logger instance.
If no logger instance was passed before a new instance of \setasign\SetaPDF2\Signer\ValidationRelatedInfo\Logger is returned.
setAllowTrustedIntermediateCertificatesAsTrustAnchor()
Define whether intermediate certificates can be seen as trusted anchors or not.
If this property is set to true the path generation stops as soon as it reaches a certificate in the trusted certificate collection.
Parameters
- $allow: bool
