using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; namespace WebSocketSharp { public class ClientCertAuthConfiguration { /// /// Gets or sets the certificate configuration used to authenticate the clients on the secure connection. /// /// /// A that represents the certificate collection used to authenticate /// the clients. /// public X509CertificateCollection clientCertificates { get; set; } /// /// Gets or sets the Ssl protocols type enabled. /// /// /// The value that represents the protocol used for authentication. /// public SslProtocols EnabledSslProtocols { get; set; } /// /// Gets or sets the verification of certificate revocation option. /// /// /// A Boolean value that specifies whether the certificate revocation list is checked during authentication. /// public bool CheckCertificateRevocation { get; set; } /// /// Initializes a new instance of the class. /// public ClientCertAuthConfiguration(X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols = SslProtocols.Default, bool checkCertificateRevocation = false) { this.clientCertificates = clientCertificates; this.EnabledSslProtocols = enabledSslProtocols; this.CheckCertificateRevocation = checkCertificateRevocation; } } }