SetaPDF_Signer_X509_Chain Helper class to build certificate paths.

File: /SetaPDF v2/Signer/X509/Chain.php

Class hierarchy

Summary

Properties

$_extraCertificates

$_trustedCertificates


Methods

_buildPaths()

protected SetaPDF_Signer_X509_Chain::_buildPaths (
SetaPDF_Signer_X509_Certificate $certificate, &$paths [, SetaPDF_Signer_X509_Certificate[] $currentPath = array ( ) ]
): void

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()

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

getExtraCertificates()

Get the extra certificates collection instance.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

getLogger()

Get the logger instance.

If no logger instance was passed before a new instance of SetaPDF_Signer_ValidationRelatedInfo_Logger is returned.

getTrustedCertificates()

Get the trusted certificates collection instance.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception