.NET Based OPC UA Client/Server SDK
3.2.1.522
|
Represents an X509 certificate. More...
Inherits UnifiedAutomation.UaBase.ICertificate, and IFormattable.
Public Member Functions | |
Certificate (string fileName) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (byte[] privateKey, string password) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (string fileName, string password) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (byte[] bytes, bool extractIssuers=true) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (X509Certificate2 certificate) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (IntPtr handle) | |
Initializes a new instance of the Certificate class. More... | |
byte[] | GetRawData (bool includeChain=false) |
Gets the raw data. More... | |
override string | ToString () |
Returns a System.String that represents this instance. More... | |
string | ToString (string format, IFormatProvider formatProvider) |
Returns a System.String that represents this instance. More... | |
Static Public Member Functions | |
static | operator X509Certificate2 (Certificate certificate) |
Performs an explicit conversion from UnifiedAutomation.UaBase.Certificate to System.Security.Cryptography.X509Certificates.X509Certificate2. More... | |
static Certificate | LoadPrivateKey (string filePath, string password) |
Loads a certificate from file. More... | |
Properties | |
string | CommonName [get] |
Gets the common name. More... | |
string | Thumbprint [get] |
Gets the thumbprint. More... | |
string | SubjectName [get] |
Gets the subject name. More... | |
string | IssuerName [get] |
Gets the issuer name. More... | |
X500DistinguishedName | Subject [get] |
Get the Subject. More... | |
X500DistinguishedName | Issuer [get] |
Gets the Issuer More... | |
DateTime | ValidTo [get] |
Gets the expiry date. More... | |
DateTime | ValidFrom [get] |
Gets the activation date. More... | |
string | SerialNumber [get] |
Gets the serial number. More... | |
bool | HasPrivateKey [get] |
Gets a value indicating whether this instance has private key. More... | |
bool | IsCertificateAuthority [get] |
Gets a value indicating whether this instance is certificate authority. More... | |
bool | IsApplicationCertificate [get] |
Gets a value indicating whether this instance is an application certificate. More... | |
bool | IsSelfSigned [get] |
Gets a value indicating whether this certificate is self-signed. More... | |
X509ExtensionCollection | Extensions [get] |
Gets the extensions. More... | |
string | ApplicationUri [get] |
Gets the application URI. More... | |
IEnumerable< string > | DomainNames [get] |
Gets the domain names. More... | |
object | PublicKey [get] |
Gets the public key associated with the certificate. More... | |
object | PrivateKey [get] |
Gets the private key associated with the certificate. More... | |
IList< ICertificate > | Issuers [get] |
The chain of issuers encoded with the certificate. More... | |
string | StorePath [get, set] |
Gets or sets the store path. More... | |
CertificateValidationOptions | ValidationOptions [get, set] |
Gets or sets the validation options. More... | |
X509Certificate2 | InternalCertificate [get] |
Gets the internal certificate. More... | |
Properties inherited from UnifiedAutomation.UaBase.ICertificate | |
string | CommonName [get] |
Gets the common name. More... | |
string | SubjectName [get] |
Gets the subject name. More... | |
string | IssuerName [get] |
Gets the issuer name. More... | |
X500DistinguishedName | Subject [get] |
Get the SubjectName as X500DistinguishedName. More... | |
X500DistinguishedName | Issuer [get] |
Gets the IssuerName as X500DistinguishedName. More... | |
string | Thumbprint [get] |
Gets the thumbprint. More... | |
string | SerialNumber [get] |
Gets the serial number. More... | |
DateTime | ValidTo [get] |
Gets the expiry date. More... | |
DateTime | ValidFrom [get] |
Gets the activation date. More... | |
string | ApplicationUri [get] |
Gets the application URI. More... | |
IEnumerable< string > | DomainNames [get] |
Gets the domain names. More... | |
bool | HasPrivateKey [get] |
Gets a value indicating whether this instance has private key. More... | |
bool | IsCertificateAuthority [get] |
Gets a value indicating whether this instance is certificate authority. More... | |
bool | IsApplicationCertificate [get] |
Gets a value indicating whether this instance is an application certificate. More... | |
bool | IsSelfSigned [get] |
Gets a value indicating whether this certificate is self-signed. More... | |
object | PublicKey [get] |
Gets the public key associated with the certificate. More... | |
object | PrivateKey [get] |
Gets the private key associated with the certificate. More... | |
IList< ICertificate > | Issuers [get] |
The chain of issuers encoded with the certificate. More... | |
X509ExtensionCollection | Extensions [get] |
Gets the extensions. More... | |
string | StorePath [get, set] |
Gets or sets the store path. More... | |
CertificateValidationOptions | ValidationOptions [get, set] |
Gets or sets the validation options. More... | |
X509Certificate2 | InternalCertificate [get] |
Gets the internal certificate. More... | |
Represents an X509 certificate.
UnifiedAutomation.UaBase.Certificate.Certificate | ( | string | fileName | ) |
Initializes a new instance of the Certificate class.
fileName | Name of the file. |
UnifiedAutomation.UaBase.Certificate.Certificate | ( | byte[] | privateKey, |
string | password | ||
) |
Initializes a new instance of the Certificate class.
privateKey | A PKCS#12 encoded private key. |
password | The password. |
UnifiedAutomation.UaBase.Certificate.Certificate | ( | string | fileName, |
string | password | ||
) |
Initializes a new instance of the Certificate class.
fileName | Name of the file. |
password | The password. |
UnifiedAutomation.UaBase.Certificate.Certificate | ( | byte[] | bytes, |
bool | extractIssuers = true |
||
) |
Initializes a new instance of the Certificate class.
bytes | The bytes. |
extractIssuers | If true any issuers appended to the buffer are extracted. |
UnifiedAutomation.UaBase.Certificate.Certificate | ( | X509Certificate2 | certificate | ) |
Initializes a new instance of the Certificate class.
certificate | The certificate. |
UnifiedAutomation.UaBase.Certificate.Certificate | ( | IntPtr | handle | ) |
Initializes a new instance of the Certificate class.
handle | The handle. |
byte [] UnifiedAutomation.UaBase.Certificate.GetRawData | ( | bool | includeChain = false | ) |
Gets the raw data.
Implements UnifiedAutomation.UaBase.ICertificate.
|
static |
Loads a certificate from file.
filePath | The file path to a PFX file. |
password | The clear text password. null if the certificate file is not password protected. |
|
explicitstatic |
Performs an explicit conversion from UnifiedAutomation.UaBase.Certificate to System.Security.Cryptography.X509Certificates.X509Certificate2.
certificate | The certificate. |
override string UnifiedAutomation.UaBase.Certificate.ToString | ( | ) |
Returns a System.String that represents this instance.
string UnifiedAutomation.UaBase.Certificate.ToString | ( | string | format, |
IFormatProvider | formatProvider | ||
) |
Returns a System.String that represents this instance.
format | The format. |
formatProvider | The format provider. |
|
get |
Gets the application URI.
|
get |
Gets the common name.
|
get |
Gets the domain names.
|
get |
Gets the extensions.
|
get |
Gets a value indicating whether this instance has private key.
true
if this instance has private key; otherwise, false
.
|
get |
Gets the internal certificate.
|
get |
Gets a value indicating whether this instance is an application certificate.
true
if this instance is an application certificate; otherwise, false
.
|
get |
Gets a value indicating whether this instance is certificate authority.
true
if this instance is certificate authority; otherwise, false
.
|
get |
Gets a value indicating whether this certificate is self-signed.
true
if this certificate is self-signed; otherwise, false
.
|
get |
Gets the Issuer
|
get |
Gets the issuer name.
|
get |
The chain of issuers encoded with the certificate.
The chain of issuers encoded with the certificate.
|
get |
Gets the private key associated with the certificate.
The private key associated with the certificate.
|
get |
Gets the public key associated with the certificate.
The public key associated with the certificate.
|
get |
Gets the serial number.
|
getset |
Gets or sets the store path.
The store path.
|
get |
Get the Subject.
|
get |
Gets the subject name.
|
get |
Gets the thumbprint.
|
getset |
Gets or sets the validation options.
The validation options.
|
get |
Gets the activation date.
|
get |
Gets the expiry date.