AddVRIEntry
security and signatures
Requires the Enterprise edition — a method of TPDFlibDSSProcess in the Enterprise unit PDFlibEntSignVerify
Description
Appends one validation-related information entry to the VRIEntries array of the process. The entry links one signature, named by the hash of its /Contents bytes, to the certificates, CRLs and OCSP responses that validate it; Execute writes the entries as the /VRI dictionary of the /DSS dictionary.
The three index lists are passed as comma-separated text and converted to integer arrays at once; they are resolved against the Certs, CRLs and OCSPs arrays when Execute runs.
Requires the Enterprise edition; the method belongs to TPDFlibDSSProcess in unit PDFlibEntSignVerify.
Syntax
Delphi
Procedure TPDFlibDSSProcess.AddVRIEntry(Const SigContentsHashHex, CertIdxCSV, CRLIdxCSV, OCSPIdxCSV: AnsiString);Parameters
| SigContentsHashHex | Key of the entry in the /VRI dictionary: the uppercase hexadecimal SHA-1 digest of the /Contents bytes of the signature the material belongs to. It is written as the key exactly as passed |
|---|---|
| CertIdxCSV | Comma-separated zero-based indexes into the Certs array of the process, for example 0,2; the named certificates become the /Cert array of the entry |
| CRLIdxCSV | Comma-separated zero-based indexes into the CRLs array of the process; the named CRLs become the /CRL array of the entry |
| OCSPIdxCSV | Comma-separated zero-based indexes into the OCSPs array of the process; the named responses become the /OCSP array of the entry |
Remarks
Each index list is read as decimal integers separated by commas; any other character is ignored. An empty list, or one without a digit, gives an empty index array, and Execute then leaves the corresponding array out of the VRI entry.
At write time an index outside its array is skipped, so a wrong index produces a shorter array and no error.
The indexes refer to the material added in the same Execute call. Validation material of an earlier revision cannot be referenced; to use it in a VRI entry, add it again in this revision.
The procedure does not raise on any input. The record it appends is described under TPAdESVRIEntry.
See also
TPDFlibDSSProcess, TPAdESVRIEntry, AddCertificate, AddCRL, AddOCSP, Execute, AddPAdESDSSVRI