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);

פרמטרים

PFXFileNamePath to a PFX containing a recipient private key
PFXPasswordPassword protecting the PFX
UseMachineKeysetהשתמשו בערך שאינו אפס עבור ה-keyset של המכונה או באפס עבור ה-keyset של המשתמש

ערכים מוחזרים

1The credential was validated and retained
0ה-PFX או הסיסמה לא היו חוקיים, ו-LastErrorCode מחזירה 420

הערות

ההתחייבות (credential) נשארת פעילה לאורך טעינות מסמכים עד שמוחלפת או מנוקה

The DLL also exports DLSetPublicKeyDecryptionPFXA for ANSI strings

ראה גם

SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus