SetPublicKeyDecryptionPFX
Segurança e assinaturas
Descrição
Sets the PKCS #12 PFX credential used by subsequent LoadFromFile, LoadFromStream, and LoadFromString calls
Sintaxe
Delphi
Function TPDFlib.SetPublicKeyDecryptionPFX(Const PFXFileName, PFXPassword: WideString; UseMachineKeyset: Integer): Integer;
ActiveX
Function PDFlib::SetPublicKeyDecryptionPFX(PFXFileName As String, PFXPassword As String, UseMachineKeyset As Long) As Long
DLL
int DLSetPublicKeyDecryptionPFX(int InstanceID, const wchar_t* PFXFileName, const wchar_t* PFXPassword, int UseMachineKeyset);
Parâmetros
| PFXFileName | Path to a PFX containing a recipient private key |
|---|---|
| PFXPassword | Password protecting the PFX |
| UseMachineKeyset | Use um valor diferente de zero para o keyset da máquina, ou zero para o keyset do usuário |
Valores retornados
| 1 | A credencial foi validada e retida |
|---|---|
| 0 | O PFX ou a senha era inválido e LastErrorCode retorna 420 |
Observações
A credencial permanece ativa entre cargas de documentos até ser substituída ou limpa
A DLL também exporta DLSetPublicKeyDecryptionPFXA para strings ANSI
Veja também
SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus