TPDFlibSBCertificate

Editions

Description

TPDFlibSBCertificate (unit PDFlibSBCertificate) descends from TPDFlibSBSignReview and implements the Small Business methods for offline certificate and OCSP parsing: they read the revocation service addresses out of a DER certificate the caller already holds, encode an RFC 6960 OCSP request for a subject and issuer certificate pair, and report the status of an OCSP response the caller already retrieved.

It belongs to the Small Business edition; the Enterprise edition includes every Small Business class, so it is part of both editions. It is the last Small Business feature class: TPDFlibSmallBusiness descends from it.

Syntax

Delphi

TPDFlibSBCertificate = Class(TPDFlibSBSignReview);

Key members

GetCertificateOCSPURLsReturns the OCSP responder addresses the DER certificate CertDER names, one per line
GetCertificateIssuerURLsReturns the addresses of the issuing CA certificates the DER certificate names, one per line
GetCertificateCRLURLsReturns the CRL distribution addresses the DER certificate names, one per line
BuildOCSPRequestEncodes an RFC 6960 OCSP request for the subject and issuer certificate pair and returns the DER bytes
GetOCSPResponseStatusReturns the RFC 6960 response status the OCSP response ResponseDER carries

Remarks

The five methods work only on bytes the caller passes in: they reach no network, build no trust path and draw no conclusion about a certificate. Retrieving revocation material and the long-term validation that consumes it stay in the Enterprise edition with TPDFlibEntSignLTV.

Until Versions 4.27.0 and 4.28.0 the five methods were implemented by TPDFlibEntSignLTV.

Applications normally create TPDFlibSmallBusiness or TPDFlibEnterprise and get the methods of this class through them. On a plain TPDFlib the three address methods return an empty string, BuildOCSPRequest returns empty bytes and GetOCSPResponseStatus returns -1; all of them set LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED.

See also

TPDFlibSBSignReview, TPDFlibSmallBusiness, TPDFlibEnterprise, TPDFlibEntSignLTV