AddPublicKeyRecipientFromPFX
ความปลอดภัยและลายเซ็น
คำอธิบาย
เพิ่มใบรับรองที่พ่วง private key จากไฟล์ PKCS #12 PFX เข้าเป็นผู้รับการเข้ารหัสแบบคีย์สาธารณะ
ไวยากรณ์
Delphi
Function TPDFlib.AddPublicKeyRecipientFromPFX(Const PFXFileName, PFXPassword: WideString; UseMachineKeyset, Permissions: Integer): Integer;
ActiveX
Function PDFlib::AddPublicKeyRecipientFromPFX(PFXFileName As String, PFXPassword As String, UseMachineKeyset As Long, Permissions As Long) As Long
DLL
int DLAddPublicKeyRecipientFromPFX(int InstanceID, const wchar_t* PFXFileName, const wchar_t* PFXPassword, int UseMachineKeyset, int Permissions);
พารามิเตอร์
| PFXFileName | พาธไฟล์ PKCS #12 PFX |
|---|---|
| PFXPassword | รหัสผ่านป้องกันไฟล์ PFX |
| UseMachineKeyset | ใช้ค่าไม่เท่าศูนย์เพื่อนำเข้าคีย์ผ่าน machine keyset หรือศูนย์สำหรับ user keyset |
| Permissions | Permission mask returned by EncodePermissions |
ค่าที่ส่งคืน
| 1 | เพิ่มใบรับรองผู้รับแล้ว |
|---|---|
| 0 | ไฟล์ PFX รหัสผ่าน สิทธิ์ หรือสถานะเอกสารไม่ถูกต้อง |
หมายเหตุ
private key ถูกใช้แค่ระบุตัวใบรับรองปลายทาง (leaf) ตอนเพิ่มผู้รับเท่านั้น และไม่ถูกฝังลงใน PDF DLL ยังส่งออก
DLAddPublicKeyRecipientFromPFXA for ANSI strings