TPDFlibAdESHistoricalValidationReport
Data types, security and signatures
Description
TPDFlibAdESHistoricalValidationReport is the report returned by VerifyAdESHistorical and VerifyAdESHistoricalByName on TPDFlibSignatureVerifier.
It holds the signature integrity report, the chain report at the requested time, the chain report at the time that finally validated the chain, and the timestamp evidence that allowed that time to move.
Syntax
Delphi
TPDFlibAdESHistoricalValidationReport = Record
FieldName: WideString;
SignerIndex: Integer;
Result: TPDFlibSignatureVerifierResult;
Status: TPDFlibAdESHistoricalStatus;
RequestedTime: TDateTime;
EffectiveValidationTime: TDateTime;
BestSignatureTime: TDateTime;
ArchiveTime: TDateTime;
ProofOfExistenceTime: TDateTime;
TimeSlid: Boolean;
ProofSource: TPDFlibAdESProofSource;
SignatureTimeStampCount: Integer;
ValidSignatureTimeStampCount: Integer;
DocumentTimeStampCount: Integer;
ValidDocumentTimeStampCount: Integer;
CoveringDocumentTimeStampCount: Integer;
BaselineProfile: Integer;
SigningCertificateStatus: Integer;
ClaimedSigningTime: TDateTime;
TimeConsistencyIssues: Integer;
IntegrityReport: TPDFlibSignatureVerificationReport;
RequestedChainReport: TPDFlibSignatureChainReport;
EffectiveChainReport: TPDFlibSignatureChainReport;
End;Fields
| FieldName | Fully qualified name of the target signature field |
|---|---|
| SignerIndex | Zero-based CMS signer index that was validated |
| Result | Overall historical validation result |
| Status | Historical outcome: ahsUnknown not evaluated, ahsValidAtRequestedTime, ahsValidAtProofTime, ahsIntegrityInvalid, ahsNoTrustedProof, ahsEvidenceNotArchived or ahsHistoricalTrustInvalid |
| RequestedTime | UTC validation time requested by the caller; 0 is replaced with the current UTC time before work starts |
| EffectiveValidationTime | UTC time at which the signer chain was actually accepted |
| BestSignatureTime | Earliest usable timestamp proof time at or before RequestedTime, chosen from signature timestamps and covering document timestamps; 0 when none exists |
| ArchiveTime | Generation time of the newest document timestamp whose signed revision is the whole current file; 0 when none exists |
| ProofOfExistenceTime | Proof time that produced ahsValidAtProofTime; 0 when the chain was valid at the requested time |
| TimeSlid | True when EffectiveValidationTime is earlier than RequestedTime |
| ProofSource | apsNone, apsSignatureTimeStamp or apsDocumentTimeStamp, naming the evidence that supplied the effective time |
| SignatureTimeStampCount | Signature timestamp attributes found on the selected signer |
| ValidSignatureTimeStampCount | Signature timestamps that validated against the signer signature value |
| DocumentTimeStampCount | Other document timestamp fields found in the document |
| ValidDocumentTimeStampCount | Document timestamps proven in the newest-first evidence chain with usable generation times |
| CoveringDocumentTimeStampCount | Validated document timestamps whose signed revision covers the selected signature |
| BaselineProfile | PAdES baseline level derived from the evidence: 0 not a PAdES signature, 1 B-B, 2 B-T, 3 B-LT, 4 B-LTA |
| SigningCertificateStatus | ESS signing-certificate attribute against the signer certificate: 0 absent, 1 matches, 2 does not match, 3 not readable |
| ClaimedSigningTime | The signer's /M time; 0 when the signature declares none |
| TimeConsistencyIssues | Bit mask of time-order problems: 1 claimed signing time later than a signature timestamp, 2 signature timestamp later than a covering document timestamp, 4 later document timestamp carrying an earlier time, 8 document timestamp unproven at the time of the one above it |
| IntegrityReport | Signature verification report for the selected signer |
| RequestedChainReport | Chain report at RequestedTime |
| EffectiveChainReport | Chain report at the effective validation time; it starts as the requested-time report and is replaced by the last proof-time attempt |
Remarks
Key or CA compromise is not undone by an earlier proof: when the requested-time chain is revoked for reason 1 or 2, the status becomes ahsHistoricalTrustInvalid without attempting to slide the time.
srmCacheOnly and srmOnline require a trusted whole-document timestamp, reported in ArchiveTime, before current DSS evidence can be treated as historical; otherwise Status is ahsEvidenceNotArchived.
A proof time moves the chain validation time, not the signing time; a certificate that was expired or not yet valid at the proof time still fails.
The call runs DeriveBaselineProfile before returning, but the profile only advances for an ETSI.CAdES.detached signature; other subfilters keep 0.
TimeSlid can only be True together with ahsValidAtProofTime.
See also
VerifyAdESHistorical, TPDFlibSignatureVerifier, ApplyPAdESLongTermValidation, TPDFlibSignatureVerifierResult