C# Class System.Security.Cryptography.X509Certificates.X509Certificate

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

Private Properties

Property Type Description
Export byte[]
Export byte[]
GetIssuerName string
GetName string
GetNotAfter System.DateTime
GetNotBefore System.DateTime
GetRawCertHash byte[]
GetRawSerialNumber byte[]
IDeserializationCallback void
ISerializable void
Import void
Import void
Import void
Import void
ThrowIfInvalid void
ValidateKeyStorageFlags void
VerifyContentType void
X509Certificate
X509Certificate
X509Certificate
X509Certificate
X509Certificate System.Diagnostics
X509Certificate System.Diagnostics
X509Certificate System.Diagnostics
X509Certificate System.Diagnostics
X509Certificate System.Diagnostics
X509Certificate System.Diagnostics

Public Methods

Method Description
CreateFromCertFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
CreateFromCertFile ( string filename ) : X509Certificate
CreateFromSignedFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
CreateFromSignedFile ( string filename ) : X509Certificate
Dispose ( ) : void
Equals ( System other ) : bool
Equals ( X509Certificate other ) : bool
Equals ( object obj ) : bool
Export ( System contentType ) : byte[]
Export ( System contentType, string password ) : byte[]
Export ( X509ContentType contentType ) : byte[]
Export ( X509ContentType contentType, string password ) : byte[]
GetCertHash ( ) : byte[]
GetCertHashString ( ) : string
GetEffectiveDateString ( ) : string
GetExpirationDateString ( ) : string
GetFormat ( ) : string
GetHashCode ( ) : int
GetKeyAlgorithm ( ) : string
GetKeyAlgorithmParameters ( ) : byte[]
GetKeyAlgorithmParametersString ( ) : string
GetPublicKey ( ) : byte[]
GetPublicKeyString ( ) : string
GetRawCertData ( ) : byte[]
GetRawCertDataString ( ) : string
GetSerialNumber ( ) : byte[]
GetSerialNumberString ( ) : string
Import ( byte rawData ) : void
Import ( byte rawData, string password, System keyStorageFlags ) : void
Import ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : void
Import ( string fileName ) : void
Import ( string fileName, string password, System keyStorageFlags ) : void
Import ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : void
Reset ( ) : void
System ( System info, System context ) : void
System ( object sender ) : void
ToString ( ) : string
ToString ( bool fVerbose ) : string
X509Certificate ( )
X509Certificate ( System handle )
X509Certificate ( System info, System context )
X509Certificate ( byte data )
X509Certificate ( byte rawData, string password )
X509Certificate ( byte rawData, string password, System keyStorageFlags )
X509Certificate ( string fileName )
X509Certificate ( string fileName, string password )
X509Certificate ( string fileName, string password, System keyStorageFlags )
X509Certificate ( ) : System.Diagnostics
X509Certificate ( IntPtr handle ) : System.Diagnostics
X509Certificate ( X509Certificate cert ) : System.Diagnostics
X509Certificate ( byte data ) : System.Diagnostics
X509Certificate ( byte rawData, string password ) : System.Diagnostics
X509Certificate ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
X509Certificate ( string fileName ) : System.Diagnostics
X509Certificate ( string fileName, string password ) : System.Diagnostics
X509Certificate ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics

Protected Methods

Method Description
Dispose ( bool disposing ) : void
FormatDate ( System.DateTime date ) : string

Convert a date to a string. Some cultures, specifically using the Um-AlQura calendar cannot convert dates far into the future into strings. If the expiration date of an X.509 certificate is beyond the range of one of these cases, we need to fall back to a calendar which can express the dates

FormatDate ( System date ) : string

Private Methods

Method Description
Export ( System contentType, System password ) : byte[]
Export ( X509ContentType contentType, SecureString password ) : byte[]
GetIssuerName ( ) : string
GetName ( ) : string
GetNotAfter ( ) : System.DateTime
GetNotBefore ( ) : System.DateTime
GetRawCertHash ( ) : byte[]
GetRawSerialNumber ( ) : byte[]
IDeserializationCallback ( object sender ) : void
ISerializable ( SerializationInfo info, StreamingContext context ) : void
Import ( byte rawData, SecureString password, X509KeyStorageFlags keyStorageFlags ) : void
Import ( byte rawData, System password, System keyStorageFlags ) : void
Import ( string fileName, SecureString password, X509KeyStorageFlags keyStorageFlags ) : void
Import ( string fileName, System password, System keyStorageFlags ) : void
ThrowIfInvalid ( ) : void
ValidateKeyStorageFlags ( X509KeyStorageFlags keyStorageFlags ) : void
VerifyContentType ( X509ContentType contentType ) : void
X509Certificate ( byte rawData, System password )
X509Certificate ( byte rawData, System password, System keyStorageFlags )
X509Certificate ( string fileName, System password )
X509Certificate ( string fileName, System password, System keyStorageFlags )
X509Certificate ( ICertificatePal pal ) : System.Diagnostics
X509Certificate ( SerializationInfo info, StreamingContext context ) : System.Diagnostics
X509Certificate ( byte rawData, SecureString password ) : System.Diagnostics
X509Certificate ( byte rawData, SecureString password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
X509Certificate ( string fileName, SecureString password ) : System.Diagnostics
X509Certificate ( string fileName, SecureString password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics

Method Details

CreateFromCertFile() public static method

public static CreateFromCertFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
filename string
return System.Security.Cryptography.X509Certificates.X509Certificate

CreateFromCertFile() public static method

public static CreateFromCertFile ( string filename ) : X509Certificate
filename string
return X509Certificate

CreateFromSignedFile() public static method

public static CreateFromSignedFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
filename string
return System.Security.Cryptography.X509Certificates.X509Certificate

CreateFromSignedFile() public static method

public static CreateFromSignedFile ( string filename ) : X509Certificate
filename string
return X509Certificate

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Equals() public method

public Equals ( System other ) : bool
other System
return bool

Equals() public method

public Equals ( X509Certificate other ) : bool
other X509Certificate
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

Export() public method

public Export ( System contentType ) : byte[]
contentType System
return byte[]

Export() public method

public Export ( System contentType, string password ) : byte[]
contentType System
password string
return byte[]

Export() public method

public Export ( X509ContentType contentType ) : byte[]
contentType X509ContentType
return byte[]

Export() public method

public Export ( X509ContentType contentType, string password ) : byte[]
contentType X509ContentType
password string
return byte[]

FormatDate() protected static method

Convert a date to a string. Some cultures, specifically using the Um-AlQura calendar cannot convert dates far into the future into strings. If the expiration date of an X.509 certificate is beyond the range of one of these cases, we need to fall back to a calendar which can express the dates
protected static FormatDate ( System.DateTime date ) : string
date System.DateTime
return string

FormatDate() protected static method

protected static FormatDate ( System date ) : string
date System
return string

GetCertHash() public method

public GetCertHash ( ) : byte[]
return byte[]

GetCertHashString() public method

public GetCertHashString ( ) : string
return string

GetEffectiveDateString() public method

public GetEffectiveDateString ( ) : string
return string

GetExpirationDateString() public method

public GetExpirationDateString ( ) : string
return string

GetFormat() public method

public GetFormat ( ) : string
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetKeyAlgorithm() public method

public GetKeyAlgorithm ( ) : string
return string

GetKeyAlgorithmParameters() public method

public GetKeyAlgorithmParameters ( ) : byte[]
return byte[]

GetKeyAlgorithmParametersString() public method

public GetKeyAlgorithmParametersString ( ) : string
return string

GetPublicKey() public method

public GetPublicKey ( ) : byte[]
return byte[]

GetPublicKeyString() public method

public GetPublicKeyString ( ) : string
return string

GetRawCertData() public method

public GetRawCertData ( ) : byte[]
return byte[]

GetRawCertDataString() public method

public GetRawCertDataString ( ) : string
return string

GetSerialNumber() public method

public GetSerialNumber ( ) : byte[]
return byte[]

GetSerialNumberString() public method

public GetSerialNumberString ( ) : string
return string

Import() public method

public Import ( byte rawData ) : void
rawData byte
return void

Import() public method

public Import ( byte rawData, string password, System keyStorageFlags ) : void
rawData byte
password string
keyStorageFlags System
return void

Import() public method

public Import ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : void
rawData byte
password string
keyStorageFlags X509KeyStorageFlags
return void

Import() public method

public Import ( string fileName ) : void
fileName string
return void

Import() public method

public Import ( string fileName, string password, System keyStorageFlags ) : void
fileName string
password string
keyStorageFlags System
return void

Import() public method

public Import ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : void
fileName string
password string
keyStorageFlags X509KeyStorageFlags
return void

Reset() public method

public Reset ( ) : void
return void

System() public method

public System ( System info, System context ) : void
info System
context System
return void

System() public method

public System ( object sender ) : void
sender object
return void

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( bool fVerbose ) : string
fVerbose bool
return string

X509Certificate() public method

public X509Certificate ( )

X509Certificate() public method

public X509Certificate ( System handle )
handle System

X509Certificate() public method

public X509Certificate ( System info, System context )
info System
context System

X509Certificate() public method

public X509Certificate ( byte data )
data byte

X509Certificate() public method

public X509Certificate ( byte rawData, string password )
rawData byte
password string

X509Certificate() public method

public X509Certificate ( byte rawData, string password, System keyStorageFlags )
rawData byte
password string
keyStorageFlags System

X509Certificate() public method

public X509Certificate ( string fileName )
fileName string

X509Certificate() public method

public X509Certificate ( string fileName, string password )
fileName string
password string

X509Certificate() public method

public X509Certificate ( string fileName, string password, System keyStorageFlags )
fileName string
password string
keyStorageFlags System

X509Certificate() public method

public X509Certificate ( ) : System.Diagnostics
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( IntPtr handle ) : System.Diagnostics
handle System.IntPtr
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( X509Certificate cert ) : System.Diagnostics
cert X509Certificate
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( byte data ) : System.Diagnostics
data byte
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( byte rawData, string password ) : System.Diagnostics
rawData byte
password string
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
rawData byte
password string
keyStorageFlags X509KeyStorageFlags
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( string fileName ) : System.Diagnostics
fileName string
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( string fileName, string password ) : System.Diagnostics
fileName string
password string
return System.Diagnostics

X509Certificate() public method

public X509Certificate ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
fileName string
password string
keyStorageFlags X509KeyStorageFlags
return System.Diagnostics