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
| Kind | Kind of material to stage: dsmCertificate, dsmCRL, dsmOCSP or dsmVRI |
|---|---|
| DSSProcessID | Identifier returned by one of the NewPAdESDSSProcess methods |
| Data | DER-encoded material; for dsmVRI the uppercase hex SHA-1 hash of the signature Contents bytes |
| CertIdxCSV | For dsmVRI, comma-separated zero-based indexes of the staged certificates the entry references; otherwise empty |
| CRLIdxCSV | For dsmVRI, comma-separated zero-based indexes of the staged CRLs the entry references; otherwise empty |
| OCSPIdxCSV | For dsmVRI, comma-separated zero-based indexes of the staged OCSP responses the entry references; otherwise empty |
Return values
| 1 | The material was staged |
|---|---|
| 0 | The process identifier or the material was invalid |
See also
TPDFlibDSSMaterialKind, TPDFlibDSSMaterialFetch, AddPAdESDSSCertificate, AddPAdESDSSVRI