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

public SetaPDF_Signer_CertificateBundler::addBundle (
string $bundle
): void

Add a single bundle.

Parameters
$bundle : string
 

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

public SetaPDF_Signer_CertificateBundler::addCertificate (
Certificate $certificate
): void

Add a certificate.

Parameters
$certificate : Certificate
 

addCertificates()

public SetaPDF_Signer_CertificateBundler::addCertificates (
CollectionInterface|iterable $certificates
): void

Add certificates.

Parameters
$certificates : 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