THPDFCSCSignatureProvider Class

企业版:此功能背后的单元随 HotPDF Enterprise 在 Lib\Enterprise 中提供,其他版本不含它们

THPDFCSCSignatureProvider = class(THPDFSignatureProvider)
  function Sign(const Request: THPDFSignatureProviderRequest;
    out Signature: TBytes): THPDFSignatureProviderStatus; override;
  function EstimateSignatureSize(const Request: THPDFSignatureProviderRequest;
    out SignatureBytes: Integer): THPDFSignatureProviderStatus; override;
  procedure Cancel(const OperationIdentifier: AnsiString); override;
  function RefreshCredentialInfo(const OperationIdentifier: AnsiString = ''):
    THPDFSignatureProviderStatus;
  function GetCertificateChain: THPDFCSCCertificateChain;
  function TimestampDigest(const Digest: TBytes;
    const DigestAlgorithmOID, Nonce, OperationIdentifier: AnsiString;
    out TimestampToken: TBytes): THPDFSignatureProviderStatus;
end;

提供程序在凭据操作边界串行化,因此一次性 SAD 不会在并发签名之间发生竞态,而取消操作仍可独立调用

SignHashBatch 接受一组有界有序的摘要请求,这些请求共享同一摘要算法和签名算法,然后返回位置一一对应的签名数组

spcSafeSignRetry 只在启用稳定幂等性时声明

SignHashBatch Method

Sign Method

EstimateSignatureSize Method

Cancel Method

RefreshCredentialInfo Method

GetCertificateChain Method

TimestampDigest Method

CredentialInfo Property

LastError Property

LastHTTPStatus Property

CSC 远程签名提供程序