AddPublicKeyRecipientFromPFX

Bezpečnosť a podpisy

Opis

Pridá certifikát nesúci väzbu na súkromný kľúč zo súboru PKCS #12 PFX ako príjemcu šifrovania verejným kľúčom

Syntax

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

Parametre

PFXFileNamePath to the PKCS #12 PFX file
PFXPasswordPassword protecting the PFX file
UseMachineKeysetUse a nonzero value to import keys through the machine keyset or zero for the user keyset
PermissionsPermission mask returned by EncodePermissions

Návratové hodnoty

1The recipient certificate was added
0The PFX, password, permissions, or document state was invalid

Poznámky

Súkromný kľúč sa používa len na identifikáciu listového certifikátu pri pridávaní príjemcu a do PDF sa nevkladáThe DLL tiež exportuje

DLAddPublicKeyRecipientFromPFXA for ANSI strings

Pozri tiež

SetPublicKeyDecryptionPFX, EncryptPublicKey