C# Класс NIST.DMC.CertificatesManager

CertificatesManager provides access to the user's local store of certificates
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddCertificate ( X509Certificate2 certificate ) : void

Adds a certificate in the user's local store

AddCertificate ( string filePath ) : void

Adds a certificate in the user's local store

AddProtectedCertificate ( string filePath, string password ) : void

Adds a protected certificate in the user's local store

FindByFriendlyName ( string friendlyName ) : X509Certificate2

Finds a certificate, in the user's local store, by its friendly name

GetCertificates ( ) : List

Retrieves the user's local certificates

Описание методов

AddCertificate() публичный статический Метод

Adds a certificate in the user's local store
public static AddCertificate ( X509Certificate2 certificate ) : void
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate to add to the store
Результат void

AddCertificate() публичный статический Метод

Adds a certificate in the user's local store
public static AddCertificate ( string filePath ) : void
filePath string Path to the file containing the certificate to add
Результат void

AddProtectedCertificate() публичный статический Метод

Adds a protected certificate in the user's local store
public static AddProtectedCertificate ( string filePath, string password ) : void
filePath string Path to the file that contains the certificate
password string Password to access the certificate data
Результат void

FindByFriendlyName() публичный статический Метод

Finds a certificate, in the user's local store, by its friendly name
public static FindByFriendlyName ( string friendlyName ) : X509Certificate2
friendlyName string Friendly name of the certificates
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificates() публичный статический Метод

Retrieves the user's local certificates
public static GetCertificates ( ) : List
Результат List