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
addCrl()
Adds an CRL which will be embedded in the CMS structure.
Parameters
- $crl : string|\SetaPDF_Signer_X509_Crl
addOcspResponse()
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
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
setExtraCertificates()
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
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