GetSignatureEmbeddedCertificateCount

數位簽章

描述

統計簽章在其 CMS 中攜帶的憑證數量

憑證集合超出其所屬 CMS 容器邊界時會遭到拒絕;外層 CMS 物件之後的填充資料仍會被接受

語法

Delphi

Function TPDFlib.GetSignatureEmbeddedCertificateCount(Const InputFile, Password, FieldName: WideString): Integer;

參數

InputFileThe signed PDF.
Password開啟它的密碼;空字串表示無。
FieldName簽章列舉所回報的簽章欄位名稱。

傳回值

Count內嵌憑證的數量。
0無法讀取檔案或欄位,或簽章未內嵌任何憑證。

備註

用 GetSignatureEmbeddedCertificateDER 以 0 到本值減一的索引存取憑證。

文件以共用控制代碼讀取,因此驗證器或檢視器已開啟該檔案時也能得到答案

另見

GetSignatureEmbeddedCertificateDER, GetSignatureSignerCertificateDER