C# 클래스 Tailspin.Surveys.Common.CertificateUtility

utility class to find certs and export them into byte arrays
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps

공개 메소드들

메소드 설명
ExportCertificateWithPrivateKey ( X509Certificate2 cert, string &password ) : byte[]

Exports the cert supplied into a byte arrays and secures it with a randomly generated password.

FindCertificateByThumbprint ( StoreName storeName, StoreLocation storeLocation, string thumbprint, bool validationRequired ) : X509Certificate2

Finds the cert having thumbprint supplied from store location supplied

FindCertificateByThumbprint ( string thumbprint, bool validateCertificate ) : X509Certificate2

Finds the cert having thumbprint supplied defaulting to the personal store of currrent user.

메소드 상세

ExportCertificateWithPrivateKey() 공개 정적인 메소드

Exports the cert supplied into a byte arrays and secures it with a randomly generated password.
public static ExportCertificateWithPrivateKey ( X509Certificate2 cert, string &password ) : byte[]
cert System.Security.Cryptography.X509Certificates.X509Certificate2
password string
리턴 byte[]

FindCertificateByThumbprint() 공개 정적인 메소드

Finds the cert having thumbprint supplied from store location supplied
public static FindCertificateByThumbprint ( StoreName storeName, StoreLocation storeLocation, string thumbprint, bool validationRequired ) : X509Certificate2
storeName StoreName
storeLocation StoreLocation
thumbprint string
validationRequired bool
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

FindCertificateByThumbprint() 공개 정적인 메소드

Finds the cert having thumbprint supplied defaulting to the personal store of currrent user.
public static FindCertificateByThumbprint ( string thumbprint, bool validateCertificate ) : X509Certificate2
thumbprint string
validateCertificate bool
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2