setasign\SetaPDF2\Signer\Signature\Module

PadesProxyTrait A trait for individual modules using the PAdES module internally.

File: /SetaPDF v2/Signer/Signature/Module/PadesProxyTrait.php
Old class name (alias): \SetaPDF_Signer_Signature_Module_PadesProxyTrait

Used in

Summary

Properties


Methods

_getPadesModule()

Get the internal used PAdES module instance.

addCrl()

public PadesProxyTrait::addCrl (): void

Adds an CRL which will be embedded in the CMS structure.

Parameters
$crl : string|\SetaPDF_Signer_X509_Crl
 

addOcspResponse()

public PadesProxyTrait::addOcspResponse (
string|\SetaPDF_Signer_Ocsp_Response $ocspResponse
): void

Adds an OCSP response which will be embedded in the CMS structure.

Parameters
$ocspResponse : string|\SetaPDF_Signer_Ocsp_Response

DER encoded OCSP response or OCSP response instance.

Exceptions

Throws \setasign\SetaPDF2\Signer\Exception

getCertificate()

Get the certificate value.

getCms()

Get the complete Cryptographic Message Syntax structure.

Exceptions

Throws \setasign\SetaPDF2\Signer\Exception

setCertificate()

Set the signing certificate.

Parameters
$certificate : string|\SetaPDF_Signer_X509_Certificate

PEM encoded certificate, path to the PEM encoded certificate or a certificate instance.

Exceptions

Throws \InvalidArgumentException

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

setExtraCertificates()

public PadesProxyTrait::setExtraCertificates (
array|\SetaPDF_Signer_X509_Collection $extraCertificates
): void

Add additional certificates which are placed into the CMS structure.

Parameters
$extraCertificates : array|\SetaPDF_Signer_X509_Collection

PEM encoded certificates or pathes to PEM encoded certificates.

Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

updateDocument()

Updates the document instance.

Parameters
$document : \SetaPDF_Core_Document
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

See
  • ETSI TS 102 778-3 V1.2.1 - 4.7 Extensions Dictionary
  • ETSI EN 319 142-1 V1.1.0 - 5.6 Extension dictionary

updateSignatureDictionary()

Updates the signature dictionary.

PAdES requires special Filter and SubFilter entries in the signature dictionary.

Parameters
$dictionary : \SetaPDF_Core_Type_Dictionary
 
Exceptions

Throws \setasign\SetaPDF2\Signer\Exception