C# Class Thinktecture.IdentityModel.Utility.X509Certificates

Helper class to retrieve certificates from configuration
Afficher le fichier Open project: IdentityModel/Thinktecture.IdentityModel.v1

Méthodes publiques

Méthode Description
DownloadSslCertificate ( string machineName, int port ) : X509Certificate2

Downloads the SSL certificate from an SSL site.

GetCertificate ( string name ) : X509Certificate2

Retrieves a named certificate.

GetCertificate ( string name, string password ) : X509Certificate2

Retrieves a named certificate.

GetCertificateFromStore ( StoreLocation location, StoreName name, X509FindType findType, object value ) : X509Certificate2

Retrieves a certificate from the certificate store.

GetCertificateFromStore ( string subjectDistinguishedName ) : X509Certificate2

Retrieves a certificate from the current user / personal certificate store.

GetCertificateFromStore ( string subjectDistinguishedName, StoreLocation location ) : X509Certificate2

Retrieves a certificate from the specified personal certificate store.

Private Methods

Méthode Description
GetReference ( string name ) : CertificateReferenceElement

Retrieves a named certificate reference.

Method Details

DownloadSslCertificate() public static méthode

Downloads the SSL certificate from an SSL site.
public static DownloadSslCertificate ( string machineName, int port ) : X509Certificate2
machineName string Name of the machine.
port int The port.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificate() public static méthode

Retrieves a named certificate.
public static GetCertificate ( string name ) : X509Certificate2
name string The name.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificate() public static méthode

Retrieves a named certificate.
public static GetCertificate ( string name, string password ) : X509Certificate2
name string The name.
password string The password.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() public static méthode

Retrieves a certificate from the certificate store.
public static GetCertificateFromStore ( StoreLocation location, StoreName name, X509FindType findType, object value ) : X509Certificate2
location StoreLocation The location.
name StoreName The name.
findType X509FindType Type of the find.
value object The value.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() public static méthode

Retrieves a certificate from the current user / personal certificate store.
public static GetCertificateFromStore ( string subjectDistinguishedName ) : X509Certificate2
subjectDistinguishedName string The subject distinguished name of the certificate.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() public static méthode

Retrieves a certificate from the specified personal certificate store.
public static GetCertificateFromStore ( string subjectDistinguishedName, StoreLocation location ) : X509Certificate2
subjectDistinguishedName string The subject distinguished name of the certificate.
location StoreLocation The store location.
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2