TPAdESVRIEntry

security and signatures

Description

TPAdESVRIEntry describes one entry of the validation-related information dictionary (/VRI) of a PAdES Document Security Store, as defined in ETSI EN 319 142-1 v1.2.1 clause 5.4.2.3. The entry pairs the key of one signature with the validation material that belongs to it, referenced by position in the material arrays of the same revision.

TPDFlibDSSProcess keeps an array of these records in VRIEntries, and AddVRIEntry creates one from a hash and three index lists. The type is declared in unit PDFlibSmartAccess, which belongs to the base library; using it through the DSS process requires the Enterprise edition.

Syntax

TPAdESVRIEntry = Record
  SigContentsHashHex: AnsiString;
  CertIndexes: TArray<Integer>;
  CRLIndexes: TArray<Integer>;
  OCSPIndexes: TArray<Integer>;
End;

Fields

SigContentsHashHexKey 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
CertIndexesZero-based indexes into the certificates supplied in the same call; they become the /Cert array of the entry. An empty array leaves /Cert out
CRLIndexesZero-based indexes into the CRLs supplied in the same call; they become the /CRL array of the entry. An empty array leaves /CRL out
OCSPIndexesZero-based indexes into the OCSP responses supplied in the same call; they become the /OCSP array of the entry. An empty array leaves /OCSP out

Remarks

The indexes count from 0 in the order the material was added, that is, in the Certs, CRLs and OCSPs arrays of the process. When Execute writes the entry, an index outside its array is skipped, so a wrong index produces a shorter array and no error.

Each entry only sees the material added in the same revision. To reference validation material of an earlier revision, add it again in the current one.

Every entry is written with a /Type /VRI marker, which the specification allows. For the entry of a signature time-stamp token the key is the SHA-1 digest of the token instead of the digest of a signature; the long-term validation methods of the Enterprise class write such entries through AddPAdESDSSVRI.

See also

TPDFlibDSSProcess, AddVRIEntry, Execute, AddPAdESDSSVRI