My Project
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
WebSocketSharp.Net.ServerSslConfiguration Class Reference

Stores the parameters for the SslStream used by servers. More...

Public Member Functions

 ServerSslConfiguration ()
 Initializes a new instance of the ServerSslConfiguration class.
 
 ServerSslConfiguration (ServerSslConfiguration configuration)
 Initializes a new instance of the ServerSslConfiguration class that stores the parameters copied from the specified configuration.
 

Properties

bool CheckCertificateRevocation [get, set]
 Gets or sets a value indicating whether the certificate revocation list is checked during authentication.
 
bool ClientCertificateRequired [get, set]
 Gets or sets a value indicating whether the client is asked for a certificate for authentication.
 
RemoteCertificateValidationCallback ClientCertificateValidationCallback [get, set]
 Gets or sets the callback used to validate the certificate supplied by the client.
 
SslProtocols EnabledSslProtocols [get, set]
 Gets or sets the protocols used for authentication.
 
X509Certificate2 ServerCertificate [get, set]
 Gets or sets the certificate used to authenticate the server.
 

Detailed Description

Stores the parameters for the SslStream used by servers.

Constructor & Destructor Documentation

◆ ServerSslConfiguration()

WebSocketSharp.Net.ServerSslConfiguration.ServerSslConfiguration ( ServerSslConfiguration  configuration)
inline

Initializes a new instance of the ServerSslConfiguration class that stores the parameters copied from the specified configuration.

Parameters
configurationA ServerSslConfiguration from which to copy.
Exceptions
ArgumentNullExceptionconfiguration is null.

Property Documentation

◆ CheckCertificateRevocation

bool WebSocketSharp.Net.ServerSslConfiguration.CheckCertificateRevocation
getset

Gets or sets a value indicating whether the certificate revocation list is checked during authentication.

true if the certificate revocation list is checked during authentication; otherwise, false.

The default value is false.

◆ ClientCertificateRequired

bool WebSocketSharp.Net.ServerSslConfiguration.ClientCertificateRequired
getset

Gets or sets a value indicating whether the client is asked for a certificate for authentication.

true if the client is asked for a certificate for authentication; otherwise, false.

The default value is false.

◆ ClientCertificateValidationCallback

RemoteCertificateValidationCallback WebSocketSharp.Net.ServerSslConfiguration.ClientCertificateValidationCallback
getset

Gets or sets the callback used to validate the certificate supplied by the client.

The certificate is valid if the callback returns true.

A RemoteCertificateValidationCallback delegate that invokes the method called for validating the certificate.

The default value is a delegate that invokes a method that only returns true.

◆ EnabledSslProtocols

SslProtocols WebSocketSharp.Net.ServerSslConfiguration.EnabledSslProtocols
getset

Gets or sets the protocols used for authentication.

Any of the SslProtocols enum values.

It represents the protocols used for authentication.

The default value is SslProtocols.None.

◆ ServerCertificate

X509Certificate2 WebSocketSharp.Net.ServerSslConfiguration.ServerCertificate
getset

Gets or sets the certificate used to authenticate the server.

A X509Certificate2 or null.

The certificate represents an X.509 certificate.

The default value is null.


The documentation for this class was generated from the following file: