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
| FieldName | Fully qualified name of the signature field |
|---|---|
| SignerIndex | Zero-based CMS signer index that was validated |
| SignerCount | Number of CMS signers in the signature |
| EmbeddedCertificateCount | X.509 certificates carried in the CMS SignedData set |
| DSSCertificateCount | DSS or matching VRI certificates added to the chain store |
| DSSCRLCount | DSS or VRI CRLs accepted into the chain store |
| DSSOCSPCount | OCSP responses read from the DSS or VRI |
| DSSOCSPValidatedCount | Responses authenticated, applicable to a chain certificate and fresh at the verification time |
| ArchivalRevocationPresent | Selected signer carries the signed adbe-revocationInfoArchival attribute; native route only |
| ArchivalCRLCount | CRLs extracted from that archival attribute |
| ArchivalOCSPCount | OCSP responses extracted from that archival attribute |
| ArchivalOtherCount | Structurally valid custom entries in that attribute |
| ArchivalNativeError | Archival decoding result: 0 success or no attribute, 13 invalid syntax, 50 unsupported input or backend availability; native route only |
| UsedVRI | True when a matching VRI entry was used for the selected signature |
| Result | Chain validation result |
| TrustStatus | Trust classification of the chain |
| RevocationMode | Revocation policy used for this validation |
| VerificationTime | UTC time the chain was evaluated at; a zero input selects the current time, and native retrieval may advance it |
| ChainErrorStatus | Chain trust error flags reported by the chain engine |
| ChainInfoStatus | Chain information flags from the Windows chain engine; zero on the native route |
| PolicyError | Chain policy error code |
| OCSPStatus | OCSP summary: not checked, good, revoked, unknown or malformed |
| OCSPNativeError | Native OCSP result: 0 complete good coverage, 23 authenticated revocation, 50 unresolved or unsupported evidence |
| OCSPRevocationReason | Revocation reason from the authenticated OCSP response; 0 when none was reported |
| OCSPFreshnessSeconds | Largest accepted thisUpdate age relative to the verification time |
| OCSPRequestSigningError | Local error when signing an OCSP request; 0 when no signed request was configured |
| CRLRevocationReason | CRLReason of the CRL entry that revoked a chain certificate; 0 when unspecified or not found |
| CRLSignerCheckedCount | Auxiliary CRL signer evaluations completed |
| CRLSignerGoodCount | Auxiliary CRL signers with authenticated good status |
| CRLSignerRevokedCount | Auxiliary CRL signers with authenticated revocation |
| CRLSignerUnknownCount | Auxiliary CRL signers whose status stayed unresolved |
| NativeError | Platform or native error code from the failing step; 0 when none was reported |
| QualificationReport | eIDAS 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