ICertificateProvider Interface
Resolves an System.Security.Cryptography.X509Certificates.X509Certificate2 from a logical CertificateId, abstracting away the physical source (file system, certificate store, secret manager, etc.). Implementations are expected to be thread-safe and to surface format or access errors as System.InvalidOperationException.
public interface ICertificateProviderMethods
ICertificateProvider.GetCertificate(CertificateId) Method
Retrieves an X.509 certificate based on the specified certificate identifier.
System.Security.Cryptography.X509Certificates.X509Certificate2 GetCertificate(Abblix.Utils.CertificateId certificateId);Parameters
certificateId CertificateId
The identifier of the certificate to retrieve.
Returns
System.Security.Cryptography.X509Certificates.X509Certificate2
An System.Security.Cryptography.X509Certificates.X509Certificate2 instance representing the requested certificate.
Exceptions
System.Collections.Generic.KeyNotFoundException
Thrown if a certificate with the specified identifier is not found.
System.InvalidOperationException
Thrown if there is an issue in retrieving the certificate, such as issues with certificate format or storage.