AddPAdESDSSVRI

安全與簽章

需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)

描述

在組建中的 DSS 程序加入單一簽章的 Validation Related Information 項目

語法

Delphi

Function TPDFlib.AddPAdESDSSVRI(DSSProcessID: Integer; Const SigContentsHashHex, CertIdxCSV, CRLIdxCSV, OCSPIdxCSV: AnsiString): Integer; Virtual;

ActiveX

Function PDFlib::AddPAdESDSSVRI(DSSProcessID As Long, SigContentsHashHex As String, CertIdxCSV As String, CRLIdxCSV As String, OCSPIdxCSV As String) As Long

DLL

int DLAddPAdESDSSVRI(int InstanceID, int DSSProcessID, const wchar_t* SigContentsHashHex, const wchar_t* CertIdxCSV, const wchar_t* CRLIdxCSV, const wchar_t* OCSPIdxCSV);

參數

DSSProcessID任一 NewPAdESDSSProcessFrom* 函式傳回的值。
SigContentsHashHex簽章 /Contents 位元組的大寫十六進位 SHA-1 雜湊,用作 VRI 字典的鍵。
CertIdxCSV要參照之已暫存 DSS 憑證的零起算索引,以逗號分隔;空字串表示不參照。
CRLIdxCSV要參照之已暫存 DSS CRL 的零起算索引,以逗號分隔;空字串表示不參照。
OCSPIdxCSV要參照之已暫存 DSS OCSP 回應的零起算索引,以逗號分隔;空字串表示不參照。

傳回值

DSS 程序存在且 VRI 項目已暫存時傳回 1;process id 無效時傳回 0

另請參閱

NewPAdESDSSProcessFromFile, AddPAdESDSSCertificate, AddPAdESDSSCRL, AddPAdESDSSOCSP