Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateJudgementEventArgs type exposes the following members.
Initializes a new instance of the OpcCertificateJudgementEventArgs class using the event data specified.
C#
public OpcCertificateJudgementEventArgs(X509Certificate2 trustedCertificate, X509Certificate2 impeachedCertificate, OpcCertificateImpeachment impeachment, OpcResult impeachmentInfo)
Parameters
trustedCertificate
Cryptography.X509Certificates.X509Certificate2
The Cryptography.X509Certificates.X509Certificate2 instance providing the trusted certificate data.
impeachedCertificate
Cryptography.X509Certificates.X509Certificate2
The Cryptography.X509Certificates.X509Certificate2 instance providing the impeached certificate data.
impeachment
OpcCertificateImpeachment
The kind of impeachement the impeached certificate is confronted with.
impeachmentInfo
OpcResult
The OpcResult which provides additional information about the impeachment
. This information is also used in case of an non-dismissed judgement for an exception.
Exceptions
The impeachmentInfo
is a null reference (Nothing in Visual Basic).
Gets or sets a value indicating whether the impeachment of the ImpeachedCertificate is to be rejected independent from the Impeachment of the certificate judgement.
C#
public bool Dismiss { get; set; }
Property Value
The value true to reject the impeachment of the ImpeachedCertificate; otherwise the value false. The default value is false.
Gets the certificate which is impeached.
C#
public X509Certificate2 ImpeachedCertificate { get; }
Property Value
Cryptography.X509Certificates.X509Certificate2
An instance of the Cryptography.X509Certificates.X509Certificate2 class representing the certificate which is impeached.
Gets a value indicating the kind of impeachment the ImpeachedCertificate is confronted with.
C#
public OpcCertificateImpeachment Impeachment { get; }
Property Value
One of the members defined by the OpcCertificateImpeachment enumeration.
Gets the information used to represent the Impeachment in case there an exception is to be thrown.
C#
public OpcResult ImpeachmentInfo { get; }
Property Value
The information associated with the Impeachment which is used for any subsequently thrown exception.
Gets the certificate which is trusted.
C#
public X509Certificate2 TrustedCertificate { get; }
Property Value
Cryptography.X509Certificates.X509Certificate2
An instance of the Cryptography.X509Certificates.X509Certificate2 class representing the certificate which is trusted.
Returns a string that represents the current OpcCertificateJudgementEventArgs.
C#
public override string ToString()
Returns
A string that represents the current OpcCertificateJudgementEventArgs including either the ImpeachmentInfo (if available) or the Impeachment of the event data represented.