AddCertificate
security and signatures
Requires the Enterprise edition — a method of TPDFlibDSSProcess in the Enterprise unit PDFlibEntSignVerify
Description
Adds one DER-encoded certificate to the Certs array of the process; Execute writes the array as the /Certs entries of the /DSS dictionary.
The procedure appends the value it receives and nothing else: CertDER is neither parsed nor validated, and an empty string is appended as well.
Requires the Enterprise edition; the method belongs to TPDFlibDSSProcess in unit PDFlibEntSignVerify.
Syntax
Delphi
Procedure TPDFlibDSSProcess.AddCertificate(Const CertDER: AnsiString);Parameters
| CertDER | The complete DER bytes of one certificate, for example the signer or issuer certificate of a validated chain |
|---|
Remarks
Call it any number of times before Execute; the order of the calls is the order of the /Certs array and the base for the certificate indexes of a VRI entry added with AddVRIEntry.
Execute stores the string verbatim as the payload of a new stream object, so anything that is not the DER encoding of a certificate ends up as an unusable validation stream. The Enterprise class method AddPAdESDSSCertificate, which calls this procedure, rejects data that is not a single DER SEQUENCE and returns 0 before the data gets here.
The procedure does not raise on any input.
See also
TPDFlibDSSProcess, AddCRL, AddOCSP, AddVRIEntry, Execute, AddPAdESDSSCertificate