SetaPDF_Signer_X509_Chain Helper class to build certificate paths.
File: /SetaPDF v2/Signer/X509/Chain.php
Class hierarchy
Summary
Properties
Methods
__construct()
The constructor.
Parameters
- $trustedCertificates : null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
$trustedCertificates
Exceptions
_buildPaths()
Build all possible paths.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
- $paths
- $currentPath : SetaPDF_Signer_X509_Certificate[]
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
_findIssuer()
Find issuers by a certificate.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
buildPath()
Build a valid certificate path.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
- $dateTime : DateTimeInterface|null
If a date time is given only certificates which are valid at this will be part of the path.
- $timeZone : DateTimeZone|null
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws Exception
buildPaths()
Build all possible paths.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
getLogger()
Get the logger instance.
If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.