TPDFlibSignProcessLTVRun

Data types, security and signatures

Description

Runs one long-term validation step on a signing process for the sign process methods.

TPDFlib declares the public methods and a protected dispatch method for the long-term validation steps on a signing process. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibSignProcessLTVRun = Function(Action: TPDFlibSignProcessLTVAction;
  SignProcess: TPDFlibSignProcess; Const DER: AnsiString; SignatureLength: Integer): Integer Of Object;

Parameters

ActionStep to run: slaAddCRL, slaAddOCSP, slaClearRevocation or slaDocumentTimeStamp
SignProcessIdentifier returned by one of the NewSignProcess methods
DERDER-encoded CRL for slaAddCRL or OCSP response for slaAddOCSP; empty for the other actions
SignatureLengthSize to reserve for the time-stamp token for slaDocumentTimeStamp, 0 for the 8192-byte default; 0 for the other actions

Return values

1The step succeeded, or the material was already present
0The process identifier or the supplied data was invalid, or the step failed

See also

TPDFlibSignProcessLTVAction, AddSignProcessRevocationCRL, SetSignProcessDocTimeStamp