SetTimeStampServerA
디지털 서명
Enterprise 에디션이 필요합니다. Delphi, C++Builder 및 Lazarus 코드에서는 라이브러리를 TPDFlibEnterprise(PDFlibEnterprise 유닛)로 생성합니다. Enterprise DLL 및 ActiveX 빌드는 이를 그대로 제공합니다. 다른 에디션은 메서드를 유지하며, 이 메서드는 0, 빈 문자열 또는 False를 반환하고 LastErrorCode를 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)으로 설정합니다
설명
끝의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 노출합니다. 동작은 SetTimeStampServer 함수와 동일하며 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용하여 해석됩니다
기본 제공 클라이언트가 통신할 RFC 3161 타임스탬프 기관을 선택합니다
구문
Delphi
Function DLSetTimeStampServerA(InstanceID: Integer; URL: PAnsiChar; UserName: PAnsiChar; Password: PAnsiChar): Integer;
DLL
int DLSetTimeStampServerA(int InstanceID, const char* URL, const char* UserName, const char* Password);
매개변수
| URL | 기관 엔드포인트로 http 또는 https 주소여야 합니다 |
|---|---|
| UserName | 기본 인증 사용자 이름이며 익명 권한의 경우 빈 문자열입니다 |
| Password | 기본 인증 암호 |
반환 값
| 1 | 설정이 저장됨 |
|---|
비고
주소는 요청을 실제로 보낼 때 검증되므로 http 또는 https 이외의 스킴은 예외를 발생시키는 대신 GetTimeStampError를 통해 보고됩니다
SetTimeStampOptions와 함께 사용하여 다이제스트 알고리즘 및 기관이 서명 체인을 토큰에 포함할지 선택합니다
예제
PDF.SetTimeStampServer('https://tsa.example.com/tsa', '', '');
PDF.SetTimeStampOptions(2, 1, 1, 15000, '');참고 항목
SetTimeStampOptions, FetchTimeStampToken, ApplyPAdESSignatureTimeStamp