Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateQueryInstanceEventArgs type exposes the following members.
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData
of the certificate to load when creating the Cryptography.X509Certificates.X509Certificate2 instance representing the contents of the certificate data.
C#
public OpcCertificateQueryInstanceEventArgs(byte[] rawData)
Parameters
rawData
Byte[]
The binary information of the certificate to load.
Exceptions
The rawData
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData
of the certificate to load when creating the Cryptography.X509Certificates.X509Certificate2 instance (using the password
specified) representing the contents of the certificate data.
C#
public OpcCertificateQueryInstanceEventArgs(byte[] rawData, string password)
Parameters
rawData
Byte[]
The binary information of the certificate to load.
password
String
The password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
Exceptions
The rawData
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData
of the certificate to load when creating the Cryptography.X509Certificates.X509Certificate2 instance (using the password
and keyStorage
flags specified) representing the contents of the certificate data.
C#
public OpcCertificateQueryInstanceEventArgs(byte[] rawData, string password, X509KeyStorageFlags keyStorage)
Parameters
rawData
Byte[]
The binary information of the certificate to load.
password
String
The password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
keyStorage
Cryptography.X509Certificates.X509KeyStorageFlags
A combination of the values defined by the Cryptography.X509Certificates.X509KeyStorageFlags enumeration indicating the way the key in the certificate is to be stored after the certificate has been loaded.
Exceptions
The rawData
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path
of the certificate file to load when creating the Cryptography.X509Certificates.X509Certificate2 instance representing the contents of the certificate file.
C#
public OpcCertificateQueryInstanceEventArgs(string path)
Parameters
path
String
The full qualified path of the certificate file to load.
Exceptions
The path
is an empty string.
The path
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path
of the certificate file to load when creating the Cryptography.X509Certificates.X509Certificate2 instance (using the password
specified) representing the contents of the certificate file.
C#
public OpcCertificateQueryInstanceEventArgs(string path, string password)
Parameters
path
String
The full qualified path of the certificate file to load.
password
String
The password to use when reading the certificate file or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
Exceptions
The path
is an empty string.
The path
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path
of the certificate file to load when creating the Cryptography.X509Certificates.X509Certificate2 instance (using the password
and keyStorage
flags specified) representing the contents of the certificate file.
C#
public OpcCertificateQueryInstanceEventArgs(string path, string password, X509KeyStorageFlags keyStorage)
Parameters
path
String
The full qualified path of the certificate file to load.
password
String
The password to use when reading the certificate file or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
keyStorage
Cryptography.X509Certificates.X509KeyStorageFlags
A combination of the values defined by the Cryptography.X509Certificates.X509KeyStorageFlags enumeration indicating the way the key in the certificate is to be stored after the certificate has been loaded.
Exceptions
The path
is an empty string.
The path
is a null reference (Nothing in Visual Basic).
Gets or sets the Cryptography.X509Certificates.X509Certificate2 instance created either from the Path or RawData while using the Password and the KeyStorage flags considering custom, platform and operating system related restrictions.
C#
public X509Certificate2 Certificate { get; set; }
Property Value
Cryptography.X509Certificates.X509Certificate2
An instance of the Cryptography.X509Certificates.X509Certificate2 class initialized from the event data represented or a null reference (Nothing in Visual Basic) if still a Cryptography.X509Certificates.X509Certificate2 instance to create.
Gets the Cryptography.X509Certificates.X509KeyStorageFlags indicating the way the key in the certificate is to be stored after the certificate has been loaded.
C#
public X509KeyStorageFlags? KeyStorage { get; }
Property Value
Nullable<Cryptography.X509Certificates.X509KeyStorageFlags>
A combination of the values defined by the Cryptography.X509Certificates.X509KeyStorageFlags enumeration or a null reference (Nothing in Visual Basic) if the default behaviour is to be used when storing the key information contained in the certificate to load.
Gets the password to use when reading the certificate data.
C#
public string Password { get; }
Property Value
The password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
Gets the binary information of the certificate to load.
C#
public byte[] RawData { get; }
Property Value
Byte[]
An array of Byte values representing the binary information of the certificate to load or a null reference (Nothing in Visual Basic) in case there the certificate is to be loaded using the Path to the certificate file to load.