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;
Παράμετροι
| CertificateDER | Πλήρες DER-κωδικοποιημένο πιστοποιητικό RSA ή ECDSA X.509 που αντιστοιχεί στο κλειδί |
|---|---|
| KeyHandle | Open NCRYPT_KEY_HANDLE represented as TPLIntPtr |
| AllowUI | True για επιτροπή αλληλεπίδρασης provider κατά την υπογραφή |
Τιμές επιστροφής
| 1 | Το δανεικό handle επισυνάφθηκε στη διαδικασία |
|---|---|
| 0 | Το process id, το πιστοποιητικό ή το 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 χρησιμοποιούν τα API provider-και-ονόματος-κλειδιού