Skip to content

Reference

OpcCertificateJudgementEventArgs Members

Provides the event data for 'CertificateJudgement' events.

Reference

OpcCertificateJudgementEventArgs Members ​

Type
OpcCertificateJudgementEventArgs
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from EventArgs.

Constructors ​

OpcCertificateJudgementEventArgs ​

Initializes a new instance of the OpcCertificateJudgementEventArgs class using the event data specified.

csharp
public OpcCertificateJudgementEventArgs(
    X509Certificate2 trustedCertificate,
    X509Certificate2 impeachedCertificate,
    OpcCertificateImpeachment impeachment,
    OpcResult impeachmentInfo)
vbnet
Public Sub New(
    trustedCertificate As X509Certificate2,
    impeachedCertificate As X509Certificate2,
    impeachment As OpcCertificateImpeachment,
    impeachmentInfo As OpcResult)

Parameters

NameTypeDescription
trustedCertificateX509Certificate2The X509Certificate2 instance providing the trusted certificate data.
impeachedCertificateX509Certificate2The X509Certificate2 instance providing the impeached certificate data.
impeachmentOpcCertificateImpeachmentThe kind of impeachement the impeached certificate is confronted with.
impeachmentInfoOpcResultThe OpcResult which provides additional information about the impeachment. This information is also used in case of an non-dismissed judgement for an exception.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe impeachmentInfo is a null reference (Nothing in Visual Basic).

Properties ​

Dismiss ​

Gets or sets a value indicating whether the impeachment of the ImpeachedCertificate is to be rejected independent from the Impeachment of the certificate judgement.

csharp
public bool Dismiss { get; set; }
vbnet
Public Property Dismiss As Boolean

Property value

Boolean

The value true to reject the impeachment of the ImpeachedCertificate; otherwise the value false. The default value is false.

ImpeachedCertificate ​

Gets the certificate which is impeached.

csharp
public X509Certificate2 ImpeachedCertificate { get; }
vbnet
Public ReadOnly Property ImpeachedCertificate As X509Certificate2

Property value

X509Certificate2

An instance of the X509Certificate2 class representing the certificate which is impeached.

Impeachment ​

Gets a value indicating the kind of impeachment the ImpeachedCertificate is confronted with.

csharp
public OpcCertificateImpeachment Impeachment { get; }
vbnet
Public ReadOnly Property Impeachment As OpcCertificateImpeachment

Property value

OpcCertificateImpeachment

One of the members defined by the OpcCertificateImpeachment enumeration.

ImpeachmentInfo ​

Gets the information used to represent the Impeachment in case there an exception is to be thrown.

csharp
public OpcResult ImpeachmentInfo { get; }
vbnet
Public ReadOnly Property ImpeachmentInfo As OpcResult

Property value

OpcResult

The information associated with the Impeachment which is used for any subsequently thrown exception.

TrustedCertificate ​

Gets the certificate which is trusted.

csharp
public X509Certificate2 TrustedCertificate { get; }
vbnet
Public ReadOnly Property TrustedCertificate As X509Certificate2

Property value

X509Certificate2

An instance of the X509Certificate2 class representing the certificate which is trusted.

Methods ​

ToString ​

override

Returns a string that represents the current OpcCertificateJudgementEventArgs.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string that represents the current OpcCertificateJudgementEventArgs including either the ImpeachmentInfo (if available) or the Impeachment of the event data represented.

Overrides

ToString()