GetServiceInfo
Security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Returns the current view of one loaded trust service as a TPDFlibEUTSLServiceInfo record: scheme territory, current service name, service type identifier, current status, status starting time, the certificate count of the current state, and how many earlier states the service history records.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.GetServiceInfo(Index: Integer; Out Info: TPDFlibEUTSLServiceInfo): Boolean;Parameters
| Index | Zero-based service index; must be below GetServiceCount |
|---|---|
| Info | Receives the current-state description; the record is zeroed before the index check |
Return values
| True | The record describes the current state of the service |
|---|---|
| False | The index is out of range or the service has no state; Info holds empty strings and zero |
Remarks
The status and certificate count reflect the current state only; GetServiceCertificateDER with an explicit verification time reads certificates of past states through the same history.