ICertificateResolver Interface¶
Provides services for locating System.Security.Cryptography.X509Certificates.X509Certificate2
instances.
- Namespace
Microsoft.AspNetCore.DataProtection.XmlEncryption
- Assemblies
- Microsoft.AspNetCore.DataProtection
Syntax¶
public interface ICertificateResolver
-
interface
Microsoft.AspNetCore.DataProtection.XmlEncryption.
ICertificateResolver
Methods¶
-
ResolveCertificate
(System.String)¶ Locates an
System.Security.Cryptography.X509Certificates.X509Certificate2
given its thumbprint.Arguments: thumbprint (System.String) – The thumbprint (as a hex string) of the certificate to resolve. Return type: System.Security.Cryptography.X509Certificates.X509Certificate2 Returns: The resolved System.Security.Cryptography.X509Certificates.X509Certificate2
, or null if the certificate cannot be found.X509Certificate2 ResolveCertificate(string thumbprint)
-