SetSignProcessCNGKeyByHandle

אבטחה וחתימות

תיאור

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

תחביר

Delphi

Function TPDFlib.SetSignProcessCNGKeyByHandle(SignProcessID: Integer; Const CertificateDER: AnsiString; KeyHandle: TPLIntPtr; AllowUI: Boolean): Integer;

פרמטרים

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

ערכי החזרה

1ה-handle השאול צורף לתהליך
0מזהה ה-process, התעודה או ה-handle לא היו תקינים

הערות

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

ה-API הזה בגודל-handle הוא ל-Delphi בלבד; קוראי ה-DLL וה-ActiveX משתמשים ב-APIs של ספק-ושם-מפתח

ראה גם

SetSignProcessCNGKey, SetSignProcessPrivateKeyUI