TPDFlibDSSMaterialStore

Data types, security and signatures

Description

Stages validation material in a Document Security Store for the AddPAdESDSS methods.

TPDFlib declares the public methods and a protected dispatch method for staging validation material in a Document Security Store. 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

TPDFlibDSSMaterialStore = Function(Kind: TPDFlibDSSMaterialKind; DSSProcessID: Integer;
  Const Data, CertIdxCSV, CRLIdxCSV, OCSPIdxCSV: AnsiString): Integer Of Object;

Parameters

KindKind of material to stage: dsmCertificate, dsmCRL, dsmOCSP or dsmVRI
DSSProcessIDIdentifier returned by one of the NewPAdESDSSProcess methods
DataDER-encoded material; for dsmVRI the uppercase hex SHA-1 hash of the signature Contents bytes
CertIdxCSVFor dsmVRI, comma-separated zero-based indexes of the staged certificates the entry references; otherwise empty
CRLIdxCSVFor dsmVRI, comma-separated zero-based indexes of the staged CRLs the entry references; otherwise empty
OCSPIdxCSVFor dsmVRI, comma-separated zero-based indexes of the staged OCSP responses the entry references; otherwise empty

Return values

1The material was staged
0The process identifier or the material was invalid

See also

TPDFlibDSSMaterialKind, TPDFlibDSSMaterialFetch, AddPAdESDSSCertificate, AddPAdESDSSVRI