C# Class Internal.Cryptography.Pal.OpenSslX509CertificateReader

Inheritance: ICertificatePal
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
DuplicateHandles OpenSslX509CertificateReader
ExtractValidityDateTime System.DateTime
OpenSslX509CertificateReader System
SetPrivateKey void

Public Methods

Method Description
AppendPrivateKeyInfo ( StringBuilder sb ) : void
Dispose ( ) : void
GetDSAPrivateKey ( ) : DSA
GetECDsaPrivateKey ( ) : ECDsa
GetECDsaPublicKey ( ) : ECDsa
GetNameInfo ( X509NameType nameType, bool forIssuer ) : string
GetPrivateKey ( ) : AsymmetricAlgorithm
GetRSAPrivateKey ( ) : RSA

Private Methods

Method Description
DuplicateHandles ( ) : OpenSslX509CertificateReader
ExtractValidityDateTime ( IntPtr validityDatePtr ) : System.DateTime
OpenSslX509CertificateReader ( Microsoft.Win32.SafeHandles.SafeX509Handle handle ) : System
SetPrivateKey ( SafeEvpPKeyHandle privateKey ) : void

Method Details

AppendPrivateKeyInfo() public method

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

Dispose() public method

public Dispose ( ) : void
return void

GetDSAPrivateKey() public method

public GetDSAPrivateKey ( ) : DSA
return System.Security.Cryptography.DSA

GetECDsaPrivateKey() public method

public GetECDsaPrivateKey ( ) : ECDsa
return System.Security.Cryptography.ECDsa

GetECDsaPublicKey() public method

public GetECDsaPublicKey ( ) : ECDsa
return System.Security.Cryptography.ECDsa

GetNameInfo() public method

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

GetPrivateKey() public method

public GetPrivateKey ( ) : AsymmetricAlgorithm
return System.Security.Cryptography.AsymmetricAlgorithm

GetRSAPrivateKey() public method

public GetRSAPrivateKey ( ) : RSA
return System.Security.Cryptography.RSA