C# Class Internal.Cryptography.Pal.CertificatePal

Inheritance: IDisposable, ICertificatePal
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

public AppendPrivateKeyInfo ( StringBuilder sb ) : void
sb StringBuilder
return void

Dispose() public method

public Dispose ( ) : void
return void

FromBlob() public static method

public static FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
rawData byte
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
return ICertificatePal

FromFile() public static method

public static FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
fileName string
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
return ICertificatePal

FromHandle() public static method

public static FromHandle ( IntPtr handle ) : ICertificatePal
handle System.IntPtr
return ICertificatePal

FromOtherCert() public static method

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
return ICertificatePal

GetNameInfo() public method

public GetNameInfo ( X509NameType nameType, bool forIssuer ) : string
nameType X509NameType
forIssuer bool
return string