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

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

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public static CreateFromCertFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
filename string
Résultat System.Security.Cryptography.X509Certificates.X509Certificate

CreateFromCertFile() public static méthode

public static CreateFromCertFile ( string filename ) : X509Certificate
filename string
Résultat X509Certificate

CreateFromSignedFile() public static méthode

public static CreateFromSignedFile ( string filename ) : System.Security.Cryptography.X509Certificates.X509Certificate
filename string
Résultat System.Security.Cryptography.X509Certificates.X509Certificate

CreateFromSignedFile() public static méthode

public static CreateFromSignedFile ( string filename ) : X509Certificate
filename string
Résultat X509Certificate

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Equals() public méthode

public Equals ( System other ) : bool
other System
Résultat bool

Equals() public méthode

public Equals ( X509Certificate other ) : bool
other X509Certificate
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

Export() public méthode

public Export ( System contentType ) : byte[]
contentType System
Résultat byte[]

Export() public méthode

public Export ( System contentType, string password ) : byte[]
contentType System
password string
Résultat byte[]

Export() public méthode

public Export ( X509ContentType contentType ) : byte[]
contentType X509ContentType
Résultat byte[]

Export() public méthode

public Export ( X509ContentType contentType, string password ) : byte[]
contentType X509ContentType
password string
Résultat byte[]

FormatDate() protected static méthode

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
Résultat string

FormatDate() protected static méthode

protected static FormatDate ( System date ) : string
date System
Résultat string

GetCertHash() public méthode

public GetCertHash ( ) : byte[]
Résultat byte[]

GetCertHashString() public méthode

public GetCertHashString ( ) : string
Résultat string

GetEffectiveDateString() public méthode

public GetEffectiveDateString ( ) : string
Résultat string

GetExpirationDateString() public méthode

public GetExpirationDateString ( ) : string
Résultat string

GetFormat() public méthode

public GetFormat ( ) : string
Résultat string

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetKeyAlgorithm() public méthode

public GetKeyAlgorithm ( ) : string
Résultat string

GetKeyAlgorithmParameters() public méthode

public GetKeyAlgorithmParameters ( ) : byte[]
Résultat byte[]

GetKeyAlgorithmParametersString() public méthode

public GetKeyAlgorithmParametersString ( ) : string
Résultat string

GetPublicKey() public méthode

public GetPublicKey ( ) : byte[]
Résultat byte[]

GetPublicKeyString() public méthode

public GetPublicKeyString ( ) : string
Résultat string

GetRawCertData() public méthode

public GetRawCertData ( ) : byte[]
Résultat byte[]

GetRawCertDataString() public méthode

public GetRawCertDataString ( ) : string
Résultat string

GetSerialNumber() public méthode

public GetSerialNumber ( ) : byte[]
Résultat byte[]

GetSerialNumberString() public méthode

public GetSerialNumberString ( ) : string
Résultat string

Import() public méthode

public Import ( byte rawData ) : void
rawData byte
Résultat void

Import() public méthode

public Import ( byte rawData, string password, System keyStorageFlags ) : void
rawData byte
password string
keyStorageFlags System
Résultat void

Import() public méthode

public Import ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : void
rawData byte
password string
keyStorageFlags X509KeyStorageFlags
Résultat void

Import() public méthode

public Import ( string fileName ) : void
fileName string
Résultat void

Import() public méthode

public Import ( string fileName, string password, System keyStorageFlags ) : void
fileName string
password string
keyStorageFlags System
Résultat void

Import() public méthode

public Import ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : void
fileName string
password string
keyStorageFlags X509KeyStorageFlags
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

System() public méthode

public System ( System info, System context ) : void
info System
context System
Résultat void

System() public méthode

public System ( object sender ) : void
sender object
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( bool fVerbose ) : string
fVerbose bool
Résultat string

X509Certificate() public méthode

public X509Certificate ( )

X509Certificate() public méthode

public X509Certificate ( System handle )
handle System

X509Certificate() public méthode

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

X509Certificate() public méthode

public X509Certificate ( byte data )
data byte

X509Certificate() public méthode

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

X509Certificate() public méthode

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

X509Certificate() public méthode

public X509Certificate ( string fileName )
fileName string

X509Certificate() public méthode

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

X509Certificate() public méthode

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

X509Certificate() public méthode

public X509Certificate ( ) : System.Diagnostics
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( IntPtr handle ) : System.Diagnostics
handle System.IntPtr
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( X509Certificate cert ) : System.Diagnostics
cert X509Certificate
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( byte data ) : System.Diagnostics
data byte
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( byte rawData, string password ) : System.Diagnostics
rawData byte
password string
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( byte rawData, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
rawData byte
password string
keyStorageFlags X509KeyStorageFlags
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( string fileName ) : System.Diagnostics
fileName string
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( string fileName, string password ) : System.Diagnostics
fileName string
password string
Résultat System.Diagnostics

X509Certificate() public méthode

public X509Certificate ( string fileName, string password, X509KeyStorageFlags keyStorageFlags ) : System.Diagnostics
fileName string
password string
keyStorageFlags X509KeyStorageFlags
Résultat System.Diagnostics