SetPublicKeyDecryptionStore

보안 및 서명

설명

이후 문서 로드 중 일치하는 수신자 개인 키를 검색할 Windows 인증서 저장소를 설정합니다

필터가 서로 다른 수신자를 지정하면 저장소는 암호화된 각 필터에 대응하는 개인 키를 담고 있어야 합니다

필터에 대응하는 개인 키가 없으면 일치하는 인증서가 있어도 문서 로드와 Direct Access가 모두 LastErrorCode 421로 실패합니다

한 필터 안에서 수신자 봉투에 여러 개인 키가 일치하면, 그 필터는 일치하는 모든 봉투가 공유하는 권한을 사용합니다

구문

Delphi

Function TPDFlib.SetPublicKeyDecryptionStore(Const StoreName: WideString; UseMachineStore: Integer): Integer;

ActiveX

Function PDFlib::SetPublicKeyDecryptionStore(StoreName As String, UseMachineStore As Long) As Long

DLL

int DLSetPublicKeyDecryptionStore(int InstanceID, const wchar_t* StoreName, int UseMachineStore);
int DLSetPublicKeyDecryptionStoreA(int InstanceID, const char* StoreName, int UseMachineStore);

매개변수

StoreNameMY와 같은 Windows 인증서 저장소 이름
UseMachineStore로컬 컴퓨터 저장소에는 0이 아닌 값을, 현재 사용자 저장소에는 0을 사용합니다

반환 값

1저장소 선택을 유지했습니다
0저장소 이름이 비어 있습니다

비고

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

참고 항목

SetPublicKeyDecryptionPFX, ClearPublicKeyDecryptionCredential