AddSignatureFieldSeedCertificate

Security and signatures

Description

Adds one DER-encoded X.509 certificate to the exact signer-certificate constraint in an unsigned signature field

Syntax

Delphi

Function TPDFlib.AddSignatureFieldSeedCertificate(Index: Integer; Const CertificateDER: AnsiString): Integer;

ActiveX

Function PDFlib::AddSignatureFieldSeedCertificate(Index As Long, CertificateDER As Variant) As Long

DLL

int DLAddSignatureFieldSeedCertificate(int InstanceID, int Index, const char* CertificateDER, int CertificateLength);

Parameters

IndexOne-based form-field index identifying an unsigned signature field that already has a seed-value dictionary
CertificateDEROne complete DER-encoded X.509 certificate

Return values

1The certificate was added or was already present
0The field, seed-value dictionary, DER value, or aggregate size was invalid

Remarks

Certificates are compared by their complete DER encoding and byte-identical duplicates are stored once

Signing succeeds only when the selected identity certificate exactly matches one member of the field seed-value certificate array

See also

SetSignatureFieldSeedValue, ClearSignatureFieldSeedValue, GetSignProcessSeedValueError