PAdES Module (PHP)
Table of Contents
Description
The SetaPDF_Signer_Signature_Module_Pades
module allows you to create PAdES-BES/B-B conform signatures.
PAdES (PDF Advanced Electronic Signatures) is a set of restrictions and extensions to PDF and ISO 32000-1 making it suitable for advanced electronic signature. This is published by ETSI as TS 102 778.
The PAdES-BES/B-B profile defines an optional signature-timestamp-stamp attribute. This can be used by simply combining this signature module with an additional timestamp module to get PAdES B-T level.
When adding revocation information to the signed document it is possible to get PAdES B-LT level.
Appending an additional document level timestamp will end in PAdES B-LTA level.
This module extends the CMS module to add additional required singed attributes to the CMS structure. Additionally it also have restrictions on the used digest algorithm: It explicitly prohibits the usage of MD5, SHA-1 or RIPEMD-160.
Public Methods
addCrl()
Adds an CRL which will be embedded in the CMS structure.
addOcspResponse()
Adds an OCSP response which will be embedded in the CMS structure.
addSigningCertificateV2()
Adds Signing Certificate Reference Attribute.
getCertificate()
Get the certificate value.
getCms()
Get the complete Cryptographic Message Syntax structure.
getDataToSign()
Get the data which needs to be digitally signed.
getDigest()
Get the digest algorithm.
getParsedCertificate()
Ensures a certificate parameter and parses it into an ASN.1 element object structure.
setCertificate()
Set the signing certificate.
setDigest()
Set the digest algorithm to use when signing.
setExtraCertificates()
Add additional certificates which are placed into the CMS structure.
setOcspResponse()
Alias for {@link addOcspResponse()}.
setPrivateKey()
Set the the private key or a path to the private key file and password argument.
setSignatureValue()
Set the signature value.