C# Class Goedel.Platform.WindowsCertificateStore

Interface to the Windows certificate store. Channel all platform dependent code through this.
Exibir arquivo Open project: hallambaker/Mathematical-Mesh

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Clean() public static method

Clean all certificate stores to remove test certificates
public static Clean ( ) : void
return void

Clean() public static method

Clean a certificate store to remove test certificates
public static Clean ( X509Store Store ) : void
Store System.Security.Cryptography.X509Certificates.X509Store The store to clean
return void

Get() public static method

Find the certificate with a specified fingerprint.
public static Get ( string Fingerprint ) : Certificate
Fingerprint string UDF fingerprint of the corresponding key.
return Goedel.Cryptography.PKIX.Certificate

Get() public static method

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
return Goedel.Cryptography.PKIX.Certificate

Initialize() public static method

Initialization for certificate store interface class.
public static Initialize ( ) : void
return void

Register() public static method

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.
return void

Register() public static method

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.
return void

Register() public static method

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.
return void

RegisterTrustedRoot() public static method

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.
return void

RegisterTrustedRoot() public static method

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.
return void