Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RemoteCertificateEventArgs.cs
1using System;
3using System.Security.Cryptography.X509Certificates;
4
5namespace Waher.Content
6{
10 public class RemoteCertificateEventArgs : EventArgs
11 {
12 private bool? isValid = null;
13
22 {
23 this.Certificate = Certificate;
24 this.Chain = Chain;
25 this.SslPolicyErrors = SslPolicyErrors;
26 }
27
32 public bool? IsValid
33 {
34 get => this.isValid;
35 set
36 {
37 if (this.isValid.HasValue && this.isValid != value)
38 throw new InvalidOperationException("Value has already been set.");
39
40 this.isValid = value;
41 }
42 }
43
47 public X509Certificate Certificate
48 {
49 get;
50 private set;
51 }
52
56 public X509Chain Chain
57 {
58 get;
59 private set;
60 }
61
66 {
67 get;
68 private set;
69 }
70 }
71}
Remove certificate validation event arguments.
bool? IsValid
If remote certificate is considered valid or not. null means default validation rules will be applied...
RemoteCertificateEventArgs(X509Certificate Certificate, X509Chain Chain, SslPolicyErrors SslPolicyErrors)
Remove certificate validation event arguments.
X509Certificate Certificate
Remote certificate.
SslPolicyErrors SslPolicyErrors
Any SSL policy errors detected.