GetSignatureCertificateChainLength

數位簽章

描述

傳回單一簽署者簽章所攜帶認證路徑的長度

語法

Delphi

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

參數

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

傳回值

Length路徑中的憑證數量,簽署者在前。
0無法讀取簽署者或其憑證。

備註

建路徑只用簽章自身內嵌的憑證,因此路徑若停在自我簽發的憑證之前,代表其餘簽發者得透過 GetCertificateIssuerURLs 回報的位址去抓。路徑不會為了看起來完整而灌水。

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

另見

GetSignatureCertificateChainDER, GetCertificateIssuerURLs