SetSignProcessCNGKeyByHandle
Bezpečnosť a podpisy
Opis
Attaches a caller-owned NCRYPT_KEY_HANDLE and its DER-encoded X.509 certificate to a PDF signing processThis path supports keys opened by application-specific discovery, policy, or cloud-provider code without reopening the key by name
Syntax
Delphi
Function TPDFlib.SetSignProcessCNGKeyByHandle(SignProcessID: Integer; Const CertificateDER: AnsiString; KeyHandle: TPLIntPtr; AllowUI: Boolean): Integer;
Parametre
| CertificateDER | Complete DER-encoded RSA or ECDSA X.509 certificate corresponding to the key |
|---|---|
| KeyHandle | Open NCRYPT_KEY_HANDLE represented as TPLIntPtr |
| AllowUI | True to permit provider interaction while signing |
Návratové hodnoty
| 1 | The borrowed handle was attached to the process |
|---|---|
| 0 | The process id, certificate, or handle was invalid |
Poznámky
The caller retains ownership and must keep the handle valid until EndSignProcessTo* completesThe library queries the NCrypt algorithm group before signing and verifies the finished CMS signature against the supplied certificate
Toto handle-sized API je len pre Delphi; volajúci DLL a ActiveX používajú API provider-and-key-name