SetaPDF_Signer_X509_Chain Helper class to build certificate paths.
File: /SetaPDF v2/Signer/X509/Chain.php
Class hierarchy
Summary
Properties
Methods
__construct()
public SetaPDF_Signer_X509_Chain::__construct (
[ null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface $trustedCertificates = null ]
)The constructor.
Parameters
- $trustedCertificates : null|string|SetaPDF_Signer_X509_Certificate|SetaPDF_Signer_X509_Certificate[]|SetaPDF_Signer_X509_CollectionInterface
$trustedCertificates
Exceptions
_buildPaths()
protected SetaPDF_Signer_X509_Chain::_buildPaths (
SetaPDF_Signer_X509_Certificate $certificate, string[] &$paths [, SetaPDF_Signer_X509_Certificate[] $currentPath = array (
) ]
): voidBuild all possible paths.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
- $paths : string[]
- $currentPath : SetaPDF_Signer_X509_Certificate[]
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
_findIssuer()
protected SetaPDF_Signer_X509_Chain::_findIssuer (
SetaPDF_Signer_X509_Certificate $certificate
): SetaPDF_Signer_X509_CollectionFind issuers by a certificate.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
buildPath()
public SetaPDF_Signer_X509_Chain::buildPath (
SetaPDF_Signer_X509_Certificate $certificate [, DateTimeInterface|null $dateTime = null [, DateTimeZone|null $timeZone = null ]]
): false|SetaPDF_Signer_X509_Certificate[]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()
public SetaPDF_Signer_X509_Chain::buildPaths (
SetaPDF_Signer_X509_Certificate $certificate
): SetaPDF_Signer_X509_Certificate[]Build all possible paths.
Parameters
- $certificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
getLogger()
public SetaPDF_Signer_X509_Chain::getLogger (
void
): SetaPDF_Signer_ValidationRelatedInfo_LoggerInterfaceGet the logger instance.
If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger
is
returned.