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

FieldNameFully qualified name of the target signature field
SignerIndexZero-based CMS signer index that was validated
ResultOverall historical validation result
StatusHistorical outcome: ahsUnknown not evaluated, ahsValidAtRequestedTime, ahsValidAtProofTime, ahsIntegrityInvalid, ahsNoTrustedProof, ahsEvidenceNotArchived or ahsHistoricalTrustInvalid
RequestedTimeUTC validation time requested by the caller; 0 is replaced with the current UTC time before work starts
EffectiveValidationTimeUTC time at which the signer chain was actually accepted
BestSignatureTimeEarliest usable timestamp proof time at or before RequestedTime, chosen from signature timestamps and covering document timestamps; 0 when none exists
ArchiveTimeGeneration time of the newest document timestamp whose signed revision is the whole current file; 0 when none exists
ProofOfExistenceTimeProof time that produced ahsValidAtProofTime; 0 when the chain was valid at the requested time
TimeSlidTrue when EffectiveValidationTime is earlier than RequestedTime
ProofSourceapsNone, apsSignatureTimeStamp or apsDocumentTimeStamp, naming the evidence that supplied the effective time
SignatureTimeStampCountSignature timestamp attributes found on the selected signer
ValidSignatureTimeStampCountSignature timestamps that validated against the signer signature value
DocumentTimeStampCountOther document timestamp fields found in the document
ValidDocumentTimeStampCountDocument timestamps proven in the newest-first evidence chain with usable generation times
CoveringDocumentTimeStampCountValidated document timestamps whose signed revision covers the selected signature
BaselineProfilePAdES baseline level derived from the evidence: 0 not a PAdES signature, 1 B-B, 2 B-T, 3 B-LT, 4 B-LTA
SigningCertificateStatusESS signing-certificate attribute against the signer certificate: 0 absent, 1 matches, 2 does not match, 3 not readable
ClaimedSigningTimeThe signer's /M time; 0 when the signature declares none
TimeConsistencyIssuesBit 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
IntegrityReportSignature verification report for the selected signer
RequestedChainReportChain report at RequestedTime
EffectiveChainReportChain 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