TPDFlibSignatureTimeStampRun

Data types, security and signatures

Description

Runs one step of a signature time-stamp process for the time-stamp step methods.

TPDFlib declares the public methods and a protected dispatch method for adding an RFC 3161 signature time-stamp to a signature. 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

TPDFlibSignatureTimeStampRun = Function(Action: TPDFlibSignatureTimeStampAction;
  ProcessID, IndexOrAlgorithm: Integer; Const FieldName: WideString;
  Const Bytes: AnsiString): TPDFlibPAdESProcessResult Of Object;

Parameters

ActionStep to run; one of the values of TPDFlibSignatureTimeStampAction
ProcessIDIdentifier returned by one of the NewPAdESSignatureTimeStampProcess methods
IndexOrAlgorithmDigest algorithm for staSetDigest, zero-based signer index for staSetToken, 0 for the other actions
FieldNameName of the signature field for staSetField; empty for the other actions
BytesTime-stamp token for staSetToken or replacement CMS for staSetCMS; empty for the other actions

Return values

`

See also

TPDFlibSignatureTimeStampAction, TPDFlibPAdESProcessResult, SetPAdESSignatureTimeStampToken