AddPublicKeyRecipientFromFile

אבטחה וחתימות

תיאור

מוסיף תעודת נמען X.509 מקובץ DER או PEM למסמך הנבחר לפני הצפנה במפתח ציבורי

תחביר

Delphi

Function TPDFlib.AddPublicKeyRecipientFromFile(Const CertificateFileName: WideString; Permissions: Integer): Integer;

ActiveX

Function PDFlib::AddPublicKeyRecipientFromFile(CertificateFileName As String, Permissions As Long) As Long

DLL

int DLAddPublicKeyRecipientFromFile(int InstanceID, const wchar_t* CertificateFileName, int Permissions);

פרמטרים

CertificateFileNamePath to an X.509 certificate encoded as DER or PEM
PermissionsPermission mask returned by EncodePermissions

ערכי החזרה

1The recipient was added or an identical entry was already present
0The certificate, permissions, or document state was invalid

הערות

נמענים בעלי הרשאות זהות חולקים מעטפת CMS אחת, בעוד שמסכות הרשאות שונות יוצרות קבוצות מעטפת נפרדות; ה-DLL מייצא גם

DLAddPublicKeyRecipientFromFileA for ANSI paths

ראה גם

AddPublicKeyRecipientFromPFX, AddPublicKeyRecipientFromStore, EncryptPublicKey