Table of Contents

Interface ICertificateCache

Namespace
SimpleSign.Core.Crypto
Assembly
SimpleSign.Core.dll

Interface for caching intermediate certificates to avoid repeated AIA downloads.

public interface ICertificateCache

Properties

Count

Number of certificates currently cached.

int Count { get; }

Property Value

int

Methods

Clear()

Removes all entries from the cache.

void Clear()

Set(X509Certificate2)

Adds or updates a certificate in the cache.

void Set(X509Certificate2 certificate)

Parameters

certificate X509Certificate2

The certificate to cache.

TryGet(string, out X509Certificate2?)

Attempts to retrieve a certificate by its SHA-256 thumbprint.

bool TryGet(string thumbprint, out X509Certificate2? certificate)

Parameters

thumbprint string

SHA-256 thumbprint (hex, uppercase).

certificate X509Certificate2

The cached certificate, or null.

Returns

bool

True if found in cache.