AddPublicKeyRecipientFromPFX
الأمان والتواقيع
الوصف
يضيف الشهادة الحاملة لارتباط مفتاح خاص من ملف PFX بصيغة PKCS #12 كمستلم تشفير بالمفتاح العام
الصيغة
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 | استخدم قيمة غير صفيرة لاستيراد المفاتيح عبر مجموعة مفاتيح الجهاز أو صفرًا لمجموعة مفاتيح المستخدم |
| Permissions | قناع الأذونات الذي تُرجعه EncodePermissions |
قيم الإرجاع
| 1 | أُضيفت شهادة المستلم |
|---|---|
| 0 | كان ملف PFX أو كلمة المرور أو الأذونات أو حالة المستند غير صالحة |
ملاحظات
يُستخدم المفتاح الخاص فقط لتحديد الشهادة الطرفية أثناء إضافة المستلم ولا يُضمَّن في PDFيصدّر الـ DLL أيضًا
DLAddPublicKeyRecipientFromFileA للمسارات بصيغة ANSI