OpcCertificateQueryInstanceEventArgs Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateQueryInstanceEventArgs type exposes the following members.

OpcCertificateQueryInstanceEventArgs(Byte[])

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

ArgumentNullException

The rawData is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(Byte[], String)

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

ArgumentNullException

The rawData is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(Byte[], String, X509KeyStorageFlags)

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

ArgumentNullException

The rawData is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(String)

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

ArgumentException

The path is an empty string.

ArgumentNullException

The path is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(String, String)

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

ArgumentException

The path is an empty string.

ArgumentNullException

The path is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(String, String, X509KeyStorageFlags)

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

ArgumentException

The path is an empty string.

ArgumentNullException

The path is a null reference (Nothing in Visual Basic).

Certificate

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.

KeyStorage

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.

Password

Gets the password to use when reading the certificate data.

C#

public string Password { get; }


Property Value

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.

Path

Gets the full qualified path of the certificate file to load.

C#

public string Path { get; }


Property Value

String

The full qualified path of the certificate file to load or a null reference (Nothing in Visual Basic) in case there the certificate is to be loaded using its RawData.

RawData

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.