AddPublicKeyRecipientFromPFX
보안 및 서명
설명
PKCS #12 PFX 파일에서 개인 키 연결이 있는 인증서를 공개 키 암호화 수신자로 추가합니다
구문
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);
매개변수
| PFXFileName | PKCS #12 PFX 파일 경로 |
|---|---|
| PFXPassword | PFX 파일을 보호하는 암호 |
| UseMachineKeyset | 머신 키 집합을 통해 키를 가져오려면 0이 아닌 값을, 사용자 키 집합에는 0을 사용합니다 |
| Permissions | EncodePermissions가 반환한 권한 마스크 |
반환 값
| 1 | 수신자 인증서가 추가되었습니다 |
|---|---|
| 0 | PFX, 암호, 권한 또는 문서 상태가 유효하지 않습니다 |
비고
개인 키는 수신자를 추가할 때 리프 인증서를 식별하는 데만 사용되며 PDF에 포함되지 않습니다
DLL은 ANSI 문자열용 DLAddPublicKeyRecipientFromPFXA도 내보냄