Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateRequestedEventArgs type exposes the following members.
Initializes a new instance of the OpcCertificateValidationFailedEventArgs class using the event data specified.
C#
public OpcCertificateRequestedEventArgs(X509Certificate2 originalCertificate, OpcCertificateValidationResult reason, bool autoCreateCertificate)
Parameters
originalCertificate
Cryptography.X509Certificates.X509Certificate2
The original Cryptography.X509Certificates.X509Certificate2 information determined, evaluated and not used upon reason
.
reason
OpcCertificateValidationResult
One of the members defined by the OpcCertificateValidationResult enumeration indicating the reson why the originalCertificate
is not used.
autoCreateCertificate
Boolean
A value indicating whether a different certificate is created automatically if AlternativeCertificate is not defined.
Gets or sets the Cryptography.X509Certificates.X509Certificate2 instance to be used as the alternative certificate for the originally determined and refused certificate information or a null reference (Nothing in Visual Basic) if an alternative certificate is to be automatically created (if AutoCreateCertificate is equals true). The default value of this property is the same Cryptography.X509Certificates.X509Certificate2 as specified by OriginalCertificate. In case there this property keeps unchanged the use of the OriginalCertificate will be enforced.
C#
public X509Certificate2 AlternativeCertificate { get; set; }
Property Value
Cryptography.X509Certificates.X509Certificate2
The Cryptography.X509Certificates.X509Certificate2 instance to use after the event has been processed or a null reference (Nothing in Visual Basic).
Gets value indicating whether the framework will automatically create a new Cryptography.X509Certificates.X509Certificate2 instance by its own if AlternativeCertificate is a null reference (Nothing in Visual Basic).
C#
public bool AutoCreateCertificate { get; }
Property Value
The value true if the framework will automatically create a new Cryptography.X509Certificates.X509Certificate2 by its own if AlternativeCertificate is a null reference (Nothing in Visual Basic); otherwise the value false.
Gets or sets the Cryptography.X509Certificates.X509Certificate2 instance determined, evaluated and not used upon Reason.
C#
public X509Certificate2 OriginalCertificate { get; }
Property Value
Cryptography.X509Certificates.X509Certificate2
The Cryptography.X509Certificates.X509Certificate2 instance automatically determined or a null reference (Nothing in Visual Basic) in case there no certificate information could be found.
Gets one of the members defined by the OpcCertificateValidationResult enumeration which provides the outcome of the evaluation process of the OriginalCertificate information.
C#
public OpcCertificateValidationResult Reason { get; }
Property Value
OpcCertificateValidationResult
One of the members defined by the OpcCertificateValidationResult enumeration.