My Project
|
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. | |
Stores the parameters for the SslStream used by servers.
|
inline |
Initializes a new instance of the ServerSslConfiguration class that stores the parameters copied from the specified configuration.
configuration | A ServerSslConfiguration from which to copy. |
ArgumentNullException | configuration is null . |
|
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
.
|
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
.
|
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
.
|
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.
|
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
.