C# Class Microsoft.WindowsAzure.Commands.ServiceManagement.Helpers.CertUtilsNewSM

Afficher le fichier Open project: Azure/azure-powershell

Méthodes publiques

Méthode Description
Create ( X509Certificate2 certificate ) : ServiceCertificateCreateParameters
Create ( X509Certificate2 certificate, bool dropPrivateKey ) : ServiceCertificateCreateParameters
DropPrivateKey ( X509Certificate2 cert ) : X509Certificate2
FindCertificate ( X509Certificate2 certificates, string thumbprint ) : X509Certificate2
GetCertificateData ( X509Certificate2 cert ) : byte[]
GetCertificateData ( X509Certificate2 cert, string password ) : byte[]
GetCertificateSettings ( CertificateSettingList Certificates, X509Certificate2 X509Certificates ) : CertificateSettingList
HasExportablePrivateKey ( X509Certificate2 cert ) : bool
RandomBase64PasswordString ( ) : string
RandomBase64String ( int length ) : string

Method Details

Create() public static méthode

public static Create ( X509Certificate2 certificate ) : ServiceCertificateCreateParameters
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat ServiceCertificateCreateParameters

Create() public static méthode

public static Create ( X509Certificate2 certificate, bool dropPrivateKey ) : ServiceCertificateCreateParameters
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
dropPrivateKey bool
Résultat ServiceCertificateCreateParameters

DropPrivateKey() public static méthode

public static DropPrivateKey ( X509Certificate2 cert ) : X509Certificate2
cert System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

FindCertificate() public static méthode

public static FindCertificate ( X509Certificate2 certificates, string thumbprint ) : X509Certificate2
certificates System.Security.Cryptography.X509Certificates.X509Certificate2
thumbprint string
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateData() public static méthode

public static GetCertificateData ( X509Certificate2 cert ) : byte[]
cert System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat byte[]

GetCertificateData() public static méthode

public static GetCertificateData ( X509Certificate2 cert, string password ) : byte[]
cert System.Security.Cryptography.X509Certificates.X509Certificate2
password string
Résultat byte[]

GetCertificateSettings() public static méthode

public static GetCertificateSettings ( CertificateSettingList Certificates, X509Certificate2 X509Certificates ) : CertificateSettingList
Certificates CertificateSettingList
X509Certificates System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat CertificateSettingList

HasExportablePrivateKey() public static méthode

public static HasExportablePrivateKey ( X509Certificate2 cert ) : bool
cert System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat bool

RandomBase64PasswordString() public static méthode

public static RandomBase64PasswordString ( ) : string
Résultat string

RandomBase64String() public static méthode

public static RandomBase64String ( int length ) : string
length int
Résultat string