THotPDF.VerifyLoadedSignatureWithTrust

THotPDF

 

Top  Previous  Next

Weryfikuje integralność podpisu PDF i waliduje certyfikat osoby podpisującej wobec jawnej polityki zaufania offline

 

Składnia Delphi:

function VerifyLoadedSignatureWithTrust(SigIndex: Integer; Source: TStream; const Options: THPDFCertificateValidationOptions; out Info: THPDFSignatureInfo): THPDFCertificateValidationStatus; overload;

function VerifyLoadedSignatureWithTrust(SigIndex: Integer; const Options: THPDFCertificateValidationOptions; out Info: THPDFSignatureInfo): THPDFCertificateValidationStatus; overload;

 

Description

TrustAnchors is mandatory and remains fully caller-controlled; HotPDF never falls back to an operating-system trust store or network retrieval

The path builder combines the CMS certificate set, PDF DSS and VRI certificates, and IntermediateCertificates, then verifies certificate signatures, validity periods, Basic Constraints, path-length constraints, and Key Usage

RevocationMode wybiera brak sprawdzania, best-effort albo wymagane dowody; przetwarzanie OCSP obsługuje polityki nonce, delegowanych responderów, id-pkix-ocsp-extended-revoke, konfigurowalną świeżość i opcjonalne wymagania nextUpdate

Przetwarzanie CRL obsługuje parowanie base i delta, freshestCRL, removeFromCRL, pośrednich podpisujących CRL, wystawców per wpis, pierwszeństwo źródeł i konfigurowalne limity świeżości

Ograniczenia nazw są egzekwowane dla poddrzew DNS, e-mail, URI, IP i nazw katalogowych; przetwarzanie polityk certyfikatów obejmuje początkowe zbiory polityk, mapowania, wymagania explicit-policy i inhibitAnyPolicy

TrustPurpose może pozostać nieograniczony albo wybrać podpisywanie dokumentów, podpisywanie kodu, ochronę poczty, znaczniki czasu, podpisywanie OCSP albo kropkowy OID EKU w CustomTrustPurposeOID; restrykcyjny liściowy EKU musi zawierać wybrany cel albo anyExtendedKeyUsage

RevocationMode selects no checking, best-effort checking, or required evidence; OCSP and CRL responses are validated cryptographically and checked for issuer, serial number, responder authority, and freshness

Dowody VRI dla danego podpisu mają najwyższy priorytet, następnie dowody DSS na poziomie dokumentu, dowody od wywołującego i listy CRL z CMS

The return value reports certificate trust independently from Info.Status, which keeps the established cryptographic svValid meaning

Info.CertificateValidation reports the path length, trust-anchor subject, evaluation time, revocation status and source, revocation time, and an actionable issue message

 

See also: VerifyLoadedSignature, GetLoadedSignatureInfo