GetPAdESSignatureCMSBytes
安全與簽章
需要 Enterprise 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibEnterprise(PDFlibEnterprise 單元)建立程式庫;Enterprise DLL 與 ActiveX 組建原樣提供。其他版本保留此方法,方法會傳回 0、空字串或 False,並將 LastErrorCode 設為 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)
描述
在 GetPAdESSignatureValueHashHex 準備好程序之後,傳回所選簽章的 /Contents,裁剪成正規化的 CMS DER
多數呼叫端應把 TSA 權杖直接交給 SetPAdESSignatureTimeStampToken
此存取器保留給刻意執行更通用 CMS 改寫的進階流程
語法
Delphi
Function TPDFlib.GetPAdESSignatureCMSBytes(
STSProcessID: Integer): AnsiString; Virtual;DLL
const char* DLGetPAdESSignatureCMSBytes(int InstanceID, int STSProcessID, int* ByteCount);ActiveX
Function PDFlib::GetPAdESSignatureCMSBytes(STSProcessID As Long) As Variant
參數
| STSProcessID | NewPAdESSignatureTimeStampProcessFrom* 系列函式傳回的簽章時間戳程序控制代碼 |
|---|
傳回值
正規化的 CMS DER 位元組;尚未準備、程序無效或載入失敗時為空字串