THotPDF.RenewPAdESLTATimestamp Method
透過交易式的遞增更新,延長 PAdES-LTA 歸檔時間戳記鏈
宣告
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; DigestAlgorithm: THPDFCMSDigestAlgorithm; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; const Evidence: THPDFPAdESLTAEvidence; ContentsBytes: Integer= 16384): boolean; overload;
class function RenewPAdESLTATimestamp(const InputPDFPath, OutputPDFPath: string; const GetDocumentTimeStamp: THPDFCMSTimestampCallback; const Evidence: THPDFPAdESLTAEvidence; DigestAlgorithm: THPDFCMSDigestAlgorithm; ContentsBytes: Integer= 16384): boolean; overload;
證據資料
THPDFPAdESLTAEvidence 以「位元組陣列組成的陣列」形式攜帶 Certificates、OCSPResponses 與 CRLs
使用說明
- 相容多載使用 SHA-256;摘要多載則接受 SHA-256、SHA-384、SHA-512、SHA3-256、SHA3-384 或 SHA3-512
- 證據會先附加到既有 DSS,再建立新的文件時間戳記,因此時間戳記的位元組範圍涵蓋擴充後的驗證材料
- 既有的 DSS 陣列會被重用,完全相同的 DER 值在連續的遞增修訂中只會被參照一次
- 回呼會收到新 PDF 位元組範圍以所選演算法計算出的摘要
- 傳回的 TimeStampToken 必須包含相同的摘要 OID 與 message-imprint 位元組
- SHA3 續簽會在附加的修訂中宣告 ISO 32001 PDF 2.0 開發者延伸
- 所有更早的原始位元組、簽章、時間戳記與 DSS 修訂都保持逐位元組不變
- TSA 傳回大型憑證鏈時,請調大
ContentsBytes