SetTimeStampServer

디지털 서명

Enterprise 에디션이 필요합니다. Delphi, C++Builder 및 Lazarus 코드에서는 라이브러리를 TPDFlibEnterprise(PDFlibEnterprise 유닛)로 생성합니다. Enterprise DLL 및 ActiveX 빌드는 이를 그대로 제공합니다. 다른 에디션은 메서드를 유지하며, 이 메서드는 0, 빈 문자열 또는 False를 반환하고 LastErrorCode를 900(PDFLIB_ERROR_ENTERPRISE_REQUIRED)으로 설정합니다

설명

기본 제공 클라이언트가 통신할 RFC 3161 타임스탬프 기관을 선택합니다

구문

Delphi

Function TPDFlib.SetTimeStampServer(Const URL, UserName, Password: WideString): Integer; Virtual;

ActiveX

Function PDFlib::SetTimeStampServer(URL As String, UserName As String, Password As String) As Long

DLL

int DLSetTimeStampServer(int InstanceID, const wchar_t* URL, const wchar_t* UserName, const wchar_t* Password);
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