Class CompositeCertificateStore
- Namespace
- SimpleSign.Core.Crypto
- Assembly
- SimpleSign.Core.dll
Composite certificate store that searches multiple stores in order.
public sealed class CompositeCertificateStore : ICertificateStore
- Inheritance
-
CompositeCertificateStore
- Implements
- Inherited Members
Constructors
CompositeCertificateStore(params ICertificateStore[])
Creates a composite store from multiple underlying stores.
public CompositeCertificateStore(params ICertificateStore[] stores)
Parameters
storesICertificateStore[]
Methods
FindBySubject(string)
Finds all certificates matching a subject name (partial match).
public IReadOnlyList<X509Certificate2> FindBySubject(string subjectName)
Parameters
subjectNamestringSubject CN or partial match.
Returns
- IReadOnlyList<X509Certificate2>
Matching certificates.
FindByThumbprint(string)
Finds a certificate by SHA-1 thumbprint (hex string).
public X509Certificate2? FindByThumbprint(string thumbprint)
Parameters
thumbprintstringSHA-1 thumbprint, case-insensitive.
Returns
- X509Certificate2
The certificate, or null if not found.
ListAll()
Lists all certificates in the store.
public IReadOnlyList<X509Certificate2> ListAll()