GetSignatureEmbeddedCertificateDER
數位簽章
描述
傳回簽章內嵌的單張憑證,DER 編碼
憑證集合超出其所屬 CMS 容器邊界時會遭到拒絕;外層 CMS 物件之後的填充資料仍會被接受
語法
Delphi
Function TPDFlib.GetSignatureEmbeddedCertificateDER(Const InputFile, Password, FieldName: WideString; CertIndex: Integer): AnsiString;參數
| InputFile | The signed PDF. |
|---|---|
| Password | 開啟它的密碼;空字串表示無。 |
| FieldName | 簽章列舉所回報的簽章欄位名稱。 |
| CertIndex | 內嵌集合中的索引(零起算),按編碼順序。 |
傳回值
| Certificate | The certificate bytes. |
|---|---|
| Empty string | 索引超出範圍,或無法讀取檔案或欄位。 |
備註
這只讀結構、不做任何驗證:回報的是簽章指名的憑證,而不是經過檢查、確實產生有效簽章的憑證。
文件以共用控制代碼讀取,因此驗證器或檢視器已開啟該檔案時也能得到答案
另見
GetSignatureEmbeddedCertificateCount, GetSignatureCertificateChainDER