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
| PFXFileName | Path to the PKCS #12 PFX file |
|---|---|
| PFXPassword | Password protecting the PFX file |
| UseMachineKeyset | Use a nonzero value to import keys through the machine keyset or zero for the user keyset |
| Permissions | Permission mask returned by EncodePermissions |
Návratové hodnoty
| 1 | The recipient certificate was added |
|---|---|
| 0 | The 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