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
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
certificateX509Certificate2The 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
thumbprintstringSHA-256 thumbprint (hex, uppercase).
certificateX509Certificate2The cached certificate, or null.
Returns
- bool
True if found in cache.