Show / Hide Table of Contents

Class CertificateSource

Helper class to load an X509 certificate.

Inheritance
System.Object
CertificateSource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.KeyVault.dll
Syntax
public class CertificateSource
Remarks

Adapted from CertificateHelper in CrashCABN.Shared.

Constructors

View Source

CertificateSource(ILogger<CertificateSource>)

Declaration
public CertificateSource(ILogger<CertificateSource> logger)
Parameters
Type Name Description
ILogger<CertificateSource> logger

Methods

View Source

FindCertificateBySubject(String)

Searches all certificate stores for a certificate with a given subject.

Declaration
public X509Certificate2 FindCertificateBySubject(string certificateSubject)
Parameters
Type Name Description
System.String certificateSubject

The subject of the certificate to find.

Returns
Type Description
System.Security.Cryptography.X509Certificates.X509Certificate2

Returns an System.Security.Cryptography.X509Certificates.X509Certificate2 certificate.

  • View Source
In This Article
Back to top Generated by DocFX