SetaPDF_Signer_CertificateBundler Class for creation of certificate bundles.

File: /SetaPDF v2/Signer/CertificateBundler.php

Class hierarchy

Summary

Properties

$bundlePaths

Bundle paths.

$bundles

protected array SetaPDF_Signer_CertificateBundler::$bundles = array()

All added bundles.

$outputPath

The output path.


Methods

__construct()

public SetaPDF_Signer_CertificateBundler::__construct (
string $outputPath
)

The constructor.

Parameters
$outputPath : string
 

addBundle()

Add a single bundle.

Parameters
$bundle
 

addBundlePath()

public SetaPDF_Signer_CertificateBundler::addBundlePath (
string $path
): void

Add a bundle path.

Parameters
$path : string
 

addBundlePaths()

public SetaPDF_Signer_CertificateBundler::addBundlePaths (
iterable $iterator
): void

Add bundle paths.

Parameters
$iterator : iterable
 

addCertificate()

Add a certificate.

Parameters
$certificate : SetaPDF_Signer_X509_Certificate
 

addCertificates()

Add certificates.

Parameters
$certificates : SetaPDF_Signer_X509_CollectionInterface|iterable
 

getOutputPath()

Get the output path.

save()

public SetaPDF_Signer_CertificateBundler::save (
[ bool $forceUpdate = false ]
): bool

Save the bundle.

The file will only be re-created if anything in the bundle was changed.

Parameters
$forceUpdate : bool