SetPublicKeyDecryptionPFX

보안 및 서명

설명

이후의 LoadFromFile, LoadFromStream 및 LoadFromString 호출에서 사용할 PKCS #12 PFX 자격 증명을 설정합니다

구문

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

매개변수

PFXFileName수신자 개인 키가 포함된 PFX의 경로
PFXPasswordPFX를 보호하는 암호
UseMachineKeyset컴퓨터 키 집합에는 0이 아닌 값을, 사용자 키 집합에는 0을 사용함

반환 값

1자격 증명의 유효성을 검사하고 유지했습니다
0PFX 또는 암호가 잘못되어 LastErrorCode가 420을 반환합니다

비고

자격 증명은 교체하거나 지울 때까지 문서 로드 사이에도 활성 상태로 유지됩니다

DLL은 ANSI 문자열용 DLSetPublicKeyDecryptionPFXA도 내보냅니다

참고 항목

SetPublicKeyDecryptionStore, ClearPublicKeyDecryptionCredential, GetPubSecStatus