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
$_padesModule
Methods
addCrl()
Adds an CRL which will be embedded in the CMS structure.
Parameters
- $crl : string|\setasign\SetaPDF2\Signer\X509\Crl
addOcspResponse()
Adds an OCSP response which will be embedded in the CMS structure.
Parameters
- $ocspResponse : string|\setasign\SetaPDF2\Signer\Ocsp\Response
DER encoded OCSP response or OCSP response instance.
Exceptions
setCertificate()
Set the signing certificate.
Parameters
- $certificate : string|\setasign\SetaPDF2\Signer\X509\Certificate
PEM encoded certificate, path to the PEM encoded certificate or a certificate instance.
Exceptions
Throws \InvalidArgumentException
setExtraCertificates()
Add additional certificates which are placed into the CMS structure.
Parameters
- $extraCertificates : array|\setasign\SetaPDF2\Signer\X509\Collection
PEM encoded certificates or pathes to PEM encoded certificates.
Exceptions
updateDocument()
Updates the document instance.
Parameters
- $document : \setasign\SetaPDF2\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 : \setasign\SetaPDF2\Core\Type\PdfDictionary