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

CertificateDERComplete DER-encoded RSA or ECDSA X.509 certificate corresponding to the key
KeyHandleOpen NCRYPT_KEY_HANDLE represented as TPLIntPtr
AllowUITrue to permit provider interaction while signing

Návratové hodnoty

1The borrowed handle was attached to the process
0The 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

Pozri tiež

SetSignProcessCNGKey, SetSignProcessPrivateKeyUI