SetPublicKeyDecryptionPFX
ความปลอดภัยและลายเซ็น
คำอธิบาย
ตั้ง credential PKCS #12 PFX ที่การเรียก LoadFromFile, LoadFromStream และ LoadFromString ครั้งถัดๆ ไปใช้
ไวยากรณ์
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 | รหัสผ่านป้องกันไฟล์ PFX |
| UseMachineKeyset | ใช้ค่าไม่เท่าศูนย์สำหรับ machine keyset หรือศูนย์สำหรับ user keyset |
ค่าที่ส่งกลับ
| 1 | ตรวจ credential แล้วเก็บไว้เรียบร้อย |
|---|---|
| 0 | ไฟล์ PFX หรือรหัสผ่านไม่ถูกต้อง และ LastErrorCode คืนค่า 420 |
หมายเหตุ
credential ยังใช้งานอยู่ข้ามการโหลดเอกสาร จนกว่าจะถูกแทนหรือล้าง
DLL ยังส่งออก DLSetPublicKeyDecryptionPFXA สำหรับสตริง ANSI
ดูเพิ่มเติม
SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus