.NET Based OPC UA Client/Server SDK
2.5.3.389
|
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) | |
Initializes a new instance of the Certificate class. More... | |
Certificate (X509Certificate2 certificate) | |
Initializes a new instance of the Certificate class. More... | |
byte[] | GetRawData () |
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 the private key. 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... | |
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... | |
X509ExtensionCollection | Extensions [get] |
Gets the extensions. More... | |
string | ApplicationUri [get] |
Gets the application URI. More... | |
IEnumerable< string > | DomainNames [get] |
Gets the domain names. 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... | |
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... | |
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.
|
inline |
Initializes a new instance of the Certificate class.
fileName | Name of the file. |
|
inline |
Initializes a new instance of the Certificate class.
privateKey | A PKCS#12 encoded private key. |
password | The password. |
|
inline |
Initializes a new instance of the Certificate class.
fileName | Name of the file. |
password | The password. |
|
inline |
Initializes a new instance of the Certificate class.
bytes | The bytes. |
|
inline |
Initializes a new instance of the Certificate class.
certificate | The certificate. |
|
inline |
Gets the raw data.
Implements UnifiedAutomation.UaBase.ICertificate.
|
inlinestatic |
Loads the private key.
filePath | The file path. |
password | The password. |
|
inlineexplicitstatic |
Performs an explicit conversion from UnifiedAutomation.UaBase.Certificate to System.Security.Cryptography.X509Certificates.X509Certificate2.
certificate | The certificate. |
|
inline |
Returns a System.String that represents this instance.
|
inline |
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 the issuer name.
|
get |
Gets the serial number.
|
getset |
Gets or sets the store path.
The store path.
|
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.