TPDFlibSignatureChainReport

Data types, security and signatures

Description

TPDFlibSignatureChainReport is the report returned by VerifySignerCertificateChainEx and VerifySignerCertificateChainExByName. AdES historical validation embeds two instances for the requested and effective times.

It reports the chain verdict separately from PDF signature integrity and keeps the evidence inventory distinct from the evidence that was actually accepted.

Syntax

Delphi

TPDFlibSignatureChainReport = Record
  FieldName: WideString;
  SignerIndex: Integer;
  SignerCount: Integer;
  EmbeddedCertificateCount: Integer;
  DSSCertificateCount: Integer;
  DSSCRLCount: Integer;
  DSSOCSPCount: Integer;
  DSSOCSPValidatedCount: Integer;
  ArchivalRevocationPresent: Boolean;
  ArchivalCRLCount, ArchivalOCSPCount, ArchivalOtherCount: Integer;
  ArchivalNativeError: Cardinal;
  UsedVRI: Boolean;
  Result: TPDFlibSignatureVerifierResult;
  TrustStatus: TPDFlibSignatureTrustStatus;
  RevocationMode: TPDFlibSignatureRevocationMode;
  VerificationTime: TDateTime;
  ChainErrorStatus: Cardinal;
  ChainInfoStatus: Cardinal;
  PolicyError: Cardinal;
  OCSPStatus: TPDFlibSignatureOCSPStatus;
  OCSPNativeError: Cardinal;
  OCSPRevocationReason: Cardinal;
  OCSPFreshnessSeconds: Cardinal;
  OCSPRequestSigningError: Cardinal;
  CRLRevocationReason: Cardinal;
  CRLSignerCheckedCount, CRLSignerGoodCount, CRLSignerRevokedCount, CRLSignerUnknownCount: Integer;
  NativeError: Cardinal;
  QualificationReport: TPDFlibSignatureQualificationReport;
End;

Fields

FieldNameFully qualified name of the signature field
SignerIndexZero-based CMS signer index that was validated
SignerCountNumber of CMS signers in the signature
EmbeddedCertificateCountX.509 certificates carried in the CMS SignedData set
DSSCertificateCountDSS or matching VRI certificates added to the chain store
DSSCRLCountDSS or VRI CRLs accepted into the chain store
DSSOCSPCountOCSP responses read from the DSS or VRI
DSSOCSPValidatedCountResponses authenticated, applicable to a chain certificate and fresh at the verification time
ArchivalRevocationPresentSelected signer carries the signed adbe-revocationInfoArchival attribute; native route only
ArchivalCRLCountCRLs extracted from that archival attribute
ArchivalOCSPCountOCSP responses extracted from that archival attribute
ArchivalOtherCountStructurally valid custom entries in that attribute
ArchivalNativeErrorArchival decoding result: 0 success or no attribute, 13 invalid syntax, 50 unsupported input or backend availability; native route only
UsedVRITrue when a matching VRI entry was used for the selected signature
ResultChain validation result
TrustStatusTrust classification of the chain
RevocationModeRevocation policy used for this validation
VerificationTimeUTC time the chain was evaluated at; a zero input selects the current time, and native retrieval may advance it
ChainErrorStatusChain trust error flags reported by the chain engine
ChainInfoStatusChain information flags from the Windows chain engine; zero on the native route
PolicyErrorChain policy error code
OCSPStatusOCSP summary: not checked, good, revoked, unknown or malformed
OCSPNativeErrorNative OCSP result: 0 complete good coverage, 23 authenticated revocation, 50 unresolved or unsupported evidence
OCSPRevocationReasonRevocation reason from the authenticated OCSP response; 0 when none was reported
OCSPFreshnessSecondsLargest accepted thisUpdate age relative to the verification time
OCSPRequestSigningErrorLocal error when signing an OCSP request; 0 when no signed request was configured
CRLRevocationReasonCRLReason of the CRL entry that revoked a chain certificate; 0 when unspecified or not found
CRLSignerCheckedCountAuxiliary CRL signer evaluations completed
CRLSignerGoodCountAuxiliary CRL signers with authenticated good status
CRLSignerRevokedCountAuxiliary CRL signers with authenticated revocation
CRLSignerUnknownCountAuxiliary CRL signers whose status stayed unresolved
NativeErrorPlatform or native error code from the failing step; 0 when none was reported
QualificationReporteIDAS classification from the attached trust source; sqsNotEvaluated when none is attached or the chain failed

Remarks

DSS counts describe document inventory, not accepted evidence; material retrieved during online validation does not increase them and is not written back to the file.

The archival counts and the CRL signer counts are filled by the native route; the Windows path leaves them at their defaults.

QualificationReport is filled only after a valid chain has been classified by a trust source; a source that cannot classify leaves Status at sqsNotApplicable.

ChainErrorStatus, ChainInfoStatus and PolicyError are chain-engine codes; native verification maps its path failures onto the same flag values.

On the native route vsUnknown with stsRevocationUnknown means base trust succeeded but revocation evidence was missing, stale, invalid or unsupported.

See also

TPDFlibSignatureVerifier, VerifySignerCertificateChainEx, TPDFlibEUTSLTrustSource, NativeCMSArchivalRevocation, NativeCRLRevocation, NativeOCSPRevocation