GetServiceCertificateDER

security and signatures

Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include

Description

Returns one DER-encoded certificate of a trust service in the state that was current at VerificationTime. Past times are answered from the recorded service history, so a certificate that was later withdrawn is still returned for the time it was in effect. Passing zero uses the current time.

The state is selected first; if no state of the service covers the requested time, or CertificateIndex is out of range for that state, the call fails.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.GetServiceCertificateDER(ServiceIndex, CertificateIndex: Integer;
  VerificationTime: TDateTime;
  Out CertificateDER: AnsiString): Boolean;

Parameters

ServiceIndexZero-based service index; must be below GetServiceCount
CertificateIndexZero-based index into the certificates of the selected state
VerificationTimePoint in time the state is selected for; zero means now
CertificateDERReceives the DER encoding; set to empty before the checks

Return values

TrueCertificateDER holds the requested certificate of the state current at the requested time
FalseThe service index is out of range, no state covers the time, or the certificate index is out of range

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier