C# Класс Internal.Cryptography.Pal.CertificatePal

Наследование: IDisposable, ICertificatePal
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AppendPrivateKeyInfo() публичный Метод

public AppendPrivateKeyInfo ( StringBuilder sb ) : void
sb StringBuilder
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FromBlob() публичный статический Метод

public static FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
rawData byte
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Результат ICertificatePal

FromFile() публичный статический Метод

public static FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ICertificatePal
fileName string
password SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Результат ICertificatePal

FromHandle() публичный статический Метод

public static FromHandle ( IntPtr handle ) : ICertificatePal
handle System.IntPtr
Результат ICertificatePal

FromOtherCert() публичный статический Метод

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
Результат ICertificatePal

GetNameInfo() публичный Метод

public GetNameInfo ( X509NameType nameType, bool forIssuer ) : string
nameType X509NameType
forIssuer bool
Результат string