DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.Certificate Class Reference

Provides information about X509 certificate. X509 certificate represents a X.509 certificate, which is comprised a particular identity or end-entity certificate, such as an SSL server identity or an SSL client certificate, and zero or more intermediate certificates. More...

Public Member Functions

 Certificate (string issuerName, string subjectName, bool hasExpired, long startTime, long expiryTime)
 Constructs a new Certificate instance. More...
 
 Certificate (string issuerName, string subjectName, bool hasExpired, long startTime, long expiryTime, string caFingerPrint, string certData)
 Constructs a new Certificate instance. More...
 
 Certificate (X509Certificate certificate)
 Constructs a new Certificate instance from an X509Certificate. More...
 
override string ToString ()
 Represent object as string More...
 

Properties

X509Certificate X509Certificate [get]
 Gets the X509Certificate that provides access to all certificate information or null if it's failed to extract information because of corrupted certificate data. More...
 
X509Certificate2 X509Certificate2 [get]
 Gets the X509Certificate2 that provides access to all certificate information or null if it's failed to extract information because of corrupted certificate data. More...
 
string Issuer [get]
 Returns the Issuer entity of certificate or null if it's failed to extract the issuer from certificate data because of corrupted certificate data. More...
 
string Subject [get]
 Returns the Subject entity of certificate or null if it's failed to extract the subject from certificate data because of corrupted certificate data. More...
 
string IssuerName [get]
 Gets the name of the issuer of the certificate. More...
 
string SubjectName [get]
 Gets the name of the subject of the certificate. For HTTPS server certificates, this represents the web server. The common name of the subject should match the host name of the web server. More...
 
bool HasExpired [get]
 Gets true if certificate has already expired, otherwise - false. More...
 
long ValidStartTime [get]
 Gets a period of time in milliseconds starting from the certificate is valid. More...
 
long ValidExpiryTime [get]
 Gets a period of time in milliseconds that describes until what time the certificate is valid. More...
 
string CAFingerPrint [get]
 Gets the CA Fingerprint of certificate. More...
 
string FingerPrint [get]
 Gets Fingerprint of certificate or empty string if it's failed to extract fingerprint from certificate because of corrupted data. More...
 
string SerialNumber [get]
 Gets the serial number of certificate or empty string if it's failed to extract serial number from certificate because of corrupted data. More...
 
X509KeyUsageFlags KeyUsages [get]
 Gets a flags of key usages or null if it's failed to extract key usages info from certificate because of corrupted data. More...
 
LinkedList< ExtendedKeyUsageExtendedKeyUsages [get]
 Gets a list of extended key usages or empty collection if it's failed to extract extended key usages info from certificate because of corrupted data. More...
 

Detailed Description

Provides information about X509 certificate. X509 certificate represents a X.509 certificate, which is comprised a particular identity or end-entity certificate, such as an SSL server identity or an SSL client certificate, and zero or more intermediate certificates.

Constructor & Destructor Documentation

DotNetBrowser.Certificate.Certificate ( string  issuerName,
string  subjectName,
bool  hasExpired,
long  startTime,
long  expiryTime 
)

Constructs a new Certificate instance.

Parameters
issuerNamethe name of the issuer of the certificate.
subjectNamethe name of the subject of the certificate. For HTTPS server certificates, this represents the web server. The common name of the subject should match the host name of the web server.
hasExpiredindicates whether certificate has already expired.
startTimea period of time in milliseconds starting from the certificate is valid.
expiryTimea period of time in milliseconds that describes until what time the certificate is valid.
DotNetBrowser.Certificate.Certificate ( string  issuerName,
string  subjectName,
bool  hasExpired,
long  startTime,
long  expiryTime,
string  caFingerPrint,
string  certData 
)

Constructs a new Certificate instance.

Parameters
issuerNamethe name of the issuer of the certificate.
subjectNamethe name of the subject of the certificate. For HTTPS server certificates, this represents the web server. The common name of the subject should match the host name of the web server.
hasExpiredindicates whether certificate has already expired.
startTimea period of time in milliseconds starting from the certificate is valid.
expiryTimea period of time in milliseconds that describes until what time the certificate is valid.
caFingerPrintthe CA Fingerprint of certificate. Returns an empty string when constructed from a X509Certificate.
certDataa string data from certificate.
DotNetBrowser.Certificate.Certificate ( X509Certificate  certificate)

Constructs a new Certificate instance from an X509Certificate.

Parameters
certificatethe certificate.

Member Function Documentation

override string DotNetBrowser.Certificate.ToString ( )

Represent object as string

Returns
a string that represents the object

Property Documentation

string DotNetBrowser.Certificate.CAFingerPrint
get

Gets the CA Fingerprint of certificate.

LinkedList<ExtendedKeyUsage> DotNetBrowser.Certificate.ExtendedKeyUsages
get

Gets a list of extended key usages or empty collection if it's failed to extract extended key usages info from certificate because of corrupted data.

string DotNetBrowser.Certificate.FingerPrint
get

Gets Fingerprint of certificate or empty string if it's failed to extract fingerprint from certificate because of corrupted data.

Returns

bool DotNetBrowser.Certificate.HasExpired
get

Gets true if certificate has already expired, otherwise - false.

string DotNetBrowser.Certificate.Issuer
get

Returns the Issuer entity of certificate or null if it's failed to extract the issuer from certificate data because of corrupted certificate data.

string DotNetBrowser.Certificate.IssuerName
get

Gets the name of the issuer of the certificate.

X509KeyUsageFlags DotNetBrowser.Certificate.KeyUsages
get

Gets a flags of key usages or null if it's failed to extract key usages info from certificate because of corrupted data.

string DotNetBrowser.Certificate.SerialNumber
get

Gets the serial number of certificate or empty string if it's failed to extract serial number from certificate because of corrupted data.

string DotNetBrowser.Certificate.Subject
get

Returns the Subject entity of certificate or null if it's failed to extract the subject from certificate data because of corrupted certificate data.

string DotNetBrowser.Certificate.SubjectName
get

Gets the name of the subject of the certificate. For HTTPS server certificates, this represents the web server. The common name of the subject should match the host name of the web server.

long DotNetBrowser.Certificate.ValidExpiryTime
get

Gets a period of time in milliseconds that describes until what time the certificate is valid.

long DotNetBrowser.Certificate.ValidStartTime
get

Gets a period of time in milliseconds starting from the certificate is valid.

X509Certificate DotNetBrowser.Certificate.X509Certificate
get

Gets the X509Certificate that provides access to all certificate information or null if it's failed to extract information because of corrupted certificate data.

X509Certificate2 DotNetBrowser.Certificate.X509Certificate2
get

Gets the X509Certificate2 that provides access to all certificate information or null if it's failed to extract information because of corrupted certificate data.