Feature notes: PKIX / CMS implementation notes
inherits from TstAbstractOcsp
TstOcsp
OCSP client backed by a TstCertificateManager. Assign the manager that resolves the issuing CA of the certificates under test to CertificateManager before calling CheckCertificate.
property CertificateManager: TstCustomCertificateManager read FCertificateManager write SetCertificateManager;
iOcspCacheItem / TstOcspCacheItem is the thread-safe per-certificate OCSP status slot the OCSP filter keeps for every certificate that passes THROUGH it, in a SECONDARY list. This is deliberately separate from the base filter's own key list, which by convention holds only the identifiers the filter FORBIDS - so the cache of "seen and their verdict" never pollutes the forbidden set. It caches the last verdict + when it was taken, and guards against two threads querying the same certificate at once.
function BeginCheck(aMaxAgeSecs: Cardinal; out aStatus: tOcspCertStatus): Boolean;
procedure EndCheck(aStatus: tOcspCertStatus);
function Peek(out aStatus: tOcspCertStatus): Boolean;
inherits from TInterfacedObject
implements iOcspCacheItem
constructor Create;
destructor Destroy; override;
function BeginCheck(aMaxAgeSecs: Cardinal; out aStatus: tOcspCertStatus): Boolean;
procedure EndCheck(aStatus: tOcspCertStatus);
function Peek(out aStatus: tOcspCertStatus): Boolean;
inherits from TstAbstractKeyFilter
TstCustomKeyFilterOCSP - OCSP revocation as a key filter.
Add an instance to a TstCertificateManager's filter list and bind Ocsp to a TstOcsp (whose CertificateManager resolves issuers). Every certificate the manager filters is then OCSP-checked: csRevoked -> forbidden; csGood -> allowed; csUnknown/csError -> allowed under rpSoftFail, forbidden under rpHardFail; rpIgnore or an unassigned Ocsp -> the filter is inert.
To prefer OCSP with a CRL fallback, order this filter BEFORE a TstKeyFilterCRL in the manager (a forbidding filter vetoes; ordering gives precedence).
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function IsKeyAllowed(const aIdentifier: OctetString; const aKey : iUnknown): Boolean; override;
function IsIdentifierAllowed(const aIdentifier: OctetString): Boolean; override;
property Ocsp: TstOcsp read FOcsp write SetOcsp;
property RevocationPolicy: TRevocationPolicy read FRevocationPolicy write FRevocationPolicy default rpSoftFail;
property RevocationCacheMaxAge: Cardinal read FCacheMaxAge write FCacheMaxAge default 3600;
inherits from TstCustomKeyFilterOCSP
Palette component (RegisterComponents, with an icon).
(no public members)
inherits from TstCustomKeyFilterOCSP
No-icon counterpart used by the key-manager's dynamic filter-creation option lists (RegisterNoIcon + RegisterClasses); Description supplies the picker text. Mirrors the TstKeyFilterCRL / tKeyFilterCRL pair.
class function Description: string; override;