C# Class Internal.Cryptography.Pal.CertificatePal

Inheritance: IDisposable, ICertificatePal
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
CertificatePal System
FilterPFXStore SafeCertContextHandle
FromBio ICertificatePal
FromBlobOrFile ICertificatePal
GetIssuerOrSubject string
GetSignerInPKCS7Store SafeCertContextHandle
MapKeyStorageFlags PfxCertStoreFlags
MapNameType CertNameType
PropagateKeyAlgorithmParametersFromChain byte[]
RewindBio void
TryReadX509Der bool
TryReadX509Der bool
TryReadX509Pem bool
TryReadX509Pem bool

Méthodes publiques

Méthode Description
AppendPrivateKeyInfo ( StringBuilder sb ) : void
Dispose ( ) : void
FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
FromHandle ( IntPtr handle ) : ICertificatePal
FromOtherCert ( X509Certificate cert ) : ICertificatePal

Returns the SafeCertContextHandle. Use this instead of FromHandle property when creating another X509Certificate object based on this one to ensure the underlying cert context is not released at the wrong time.

GetNameInfo ( X509NameType nameType, bool forIssuer ) : string

Private Methods

Méthode Description
CertificatePal ( SafeCertContextHandle certContext, bool deleteKeyContainer ) : System
FilterPFXStore ( byte rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags ) : SafeCertContextHandle
FromBio ( SafeBioHandle bio, SafePasswordHandle password ) : ICertificatePal
FromBlobOrFile ( byte rawData, string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
GetIssuerOrSubject ( bool issuer ) : string
GetSignerInPKCS7Store ( SafeCertStoreHandle hCertStore, System.Security.Cryptography.SafeCryptMsgHandle hCryptMsg ) : SafeCertContextHandle
MapKeyStorageFlags ( X509KeyStorageFlags keyStorageFlags ) : PfxCertStoreFlags
MapNameType ( X509NameType nameType ) : CertNameType
PropagateKeyAlgorithmParametersFromChain ( ) : byte[]
RewindBio ( SafeBioHandle bio, int bioPosition ) : void
TryReadX509Der ( SafeBioHandle bio, ICertificatePal &fromBio ) : bool
TryReadX509Der ( byte rawData, ICertificatePal &certPal ) : bool
TryReadX509Pem ( SafeBioHandle bio, ICertificatePal &certPal ) : bool
TryReadX509Pem ( byte rawData, ICertificatePal &certPal ) : bool

Method Details

AppendPrivateKeyInfo() public méthode

public AppendPrivateKeyInfo ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FromBlob() public static méthode

public static FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
rawData byte
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Résultat ICertificatePal

FromFile() public static méthode

public static FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
fileName string
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Résultat ICertificatePal

FromHandle() public static méthode

public static FromHandle ( IntPtr handle ) : ICertificatePal
handle System.IntPtr
Résultat ICertificatePal

FromOtherCert() public static méthode

Returns the SafeCertContextHandle. Use this instead of FromHandle property when creating another X509Certificate object based on this one to ensure the underlying cert context is not released at the wrong time.
public static FromOtherCert ( X509Certificate cert ) : ICertificatePal
cert System.Security.Cryptography.X509Certificates.X509Certificate
Résultat ICertificatePal

GetNameInfo() public méthode

public GetNameInfo ( X509NameType nameType, bool forIssuer ) : string
nameType X509NameType
forIssuer bool
Résultat string