C# Класс Goedel.Platform.WindowsCertificateStore

Interface to the Windows certificate store. Channel all platform dependent code through this.
Наследование: Goedel.Cryptography.CertificateStore
Показать файл Открыть проект

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

Метод Описание
Clean ( ) : void

Clean all certificate stores to remove test certificates

Clean ( X509Store Store ) : void

Clean a certificate store to remove test certificates

Get ( string Fingerprint ) : Certificate

Find the certificate with a specified fingerprint.

Get ( string Fingerprint, X509Store Store ) : Certificate

Find the certificate with a specified fingerprint in the specified store.

Initialize ( ) : void

Initialization for certificate store interface class.

Register ( Goedel.Cryptography.PKIX Certificate ) : void

Register a certificate in the default Windows store and location for that type of certificate.

Register ( Goedel.Cryptography.PKIX Certificate, StoreName StoreName, StoreLocation StoreLocation ) : void

Register a certificate in the specified Windows store *and location.

Register ( X509Certificate2 X509, StoreName StoreName, StoreLocation StoreLocation ) : void

Register a certificate in the specified Windows store and location.

RegisterTrustedRoot ( Goedel.Cryptography.PKIX Certificate ) : void

Register a certificate in the default Windows store and location for that type of certificate.

RegisterTrustedRoot ( byte Data ) : void

Register a certificate in the default Windows store and location for that type of certificate.

Приватные методы

Метод Описание
X509Certificate2 ( Goedel.Cryptography.PKIX Certificate ) : X509Certificate2

Convert the specified Cryptography Certificate to a .Net X509Certificate2 object

X509CertificateAndKey ( Goedel.Cryptography.PKIX Certificate ) : X509Certificate2

Convert the specified Cryptography Certificate to a .Net X509Certificate2 object with the corresponding private key structure.

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

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

Clean all certificate stores to remove test certificates
public static Clean ( ) : void
Результат void

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

Clean a certificate store to remove test certificates
public static Clean ( X509Store Store ) : void
Store System.Security.Cryptography.X509Certificates.X509Store The store to clean
Результат void

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

Find the certificate with a specified fingerprint.
public static Get ( string Fingerprint ) : Certificate
Fingerprint string UDF fingerprint of the corresponding key.
Результат Goedel.Cryptography.PKIX.Certificate

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

Find the certificate with a specified fingerprint in the specified store.
public static Get ( string Fingerprint, X509Store Store ) : Certificate
Fingerprint string UDF fingerprint of the corresponding key.
Store System.Security.Cryptography.X509Certificates.X509Store Certificate store to get certificate from
Результат Goedel.Cryptography.PKIX.Certificate

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

Initialization for certificate store interface class.
public static Initialize ( ) : void
Результат void

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

Register a certificate in the default Windows store and location for that type of certificate.
public static Register ( Goedel.Cryptography.PKIX Certificate ) : void
Certificate Goedel.Cryptography.PKIX Certificate to register.
Результат void

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

Register a certificate in the specified Windows store *and location.
public static Register ( Goedel.Cryptography.PKIX Certificate, StoreName StoreName, StoreLocation StoreLocation ) : void
Certificate Goedel.Cryptography.PKIX Certificate to register.
StoreName StoreName The certificate store to register the certificate to
StoreLocation StoreLocation The type of certificate store.
Результат void

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

Register a certificate in the specified Windows store and location.
public static Register ( X509Certificate2 X509, StoreName StoreName, StoreLocation StoreLocation ) : void
X509 System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate to register.
StoreName StoreName The certificate store to register the certificate to
StoreLocation StoreLocation The type of certificate store.
Результат void

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

Register a certificate in the default Windows store and location for that type of certificate.
public static RegisterTrustedRoot ( Goedel.Cryptography.PKIX Certificate ) : void
Certificate Goedel.Cryptography.PKIX Certificate to register.
Результат void

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

Register a certificate in the default Windows store and location for that type of certificate.
public static RegisterTrustedRoot ( byte Data ) : void
Data byte Certificate to register.
Результат void