SetPublicKeyDecryptionPFX
אבטחה וחתימות
תיאור
Sets the PKCS #12 PFX credential used by subsequent LoadFromFile, LoadFromStream, and LoadFromString calls
תחביר
Delphi
Function TPDFlib.SetPublicKeyDecryptionPFX(Const PFXFileName, PFXPassword: WideString; UseMachineKeyset: Integer): Integer;
ActiveX
Function PDFlib::SetPublicKeyDecryptionPFX(PFXFileName As String, PFXPassword As String, UseMachineKeyset As Long) As Long
DLL
int DLSetPublicKeyDecryptionPFX(int InstanceID, const wchar_t* PFXFileName, const wchar_t* PFXPassword, int UseMachineKeyset);
פרמטרים
| PFXFileName | Path to a PFX containing a recipient private key |
|---|---|
| PFXPassword | Password protecting the PFX |
| UseMachineKeyset | השתמשו בערך שאינו אפס עבור ה-keyset של המכונה או באפס עבור ה-keyset של המשתמש |
ערכים מוחזרים
| 1 | The credential was validated and retained |
|---|---|
| 0 | ה-PFX או הסיסמה לא היו חוקיים, ו-LastErrorCode מחזירה 420 |
הערות
ההתחייבות (credential) נשארת פעילה לאורך טעינות מסמכים עד שמוחלפת או מנוקה
The DLL also exports DLSetPublicKeyDecryptionPFXA for ANSI strings
ראה גם
SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus