|
My Project
|
Stores the parameters for the SslStream used by clients. More...
Public Member Functions | |
| ClientSslConfiguration (string targetHost) | |
| Initializes a new instance of the ClientSslConfiguration class with the specified target host server name. | |
| ClientSslConfiguration (ClientSslConfiguration configuration) | |
| Initializes a new instance of the ClientSslConfiguration 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. | |
| X509CertificateCollection | ClientCertificates [get, set] |
| Gets or sets the collection of client certificates from which to select one to supply to the server. | |
| LocalCertificateSelectionCallback | ClientCertificateSelectionCallback [get, set] |
| Gets or sets the callback used to select the certificate to supply to the server. | |
| SslProtocols | EnabledSslProtocols [get, set] |
| Gets or sets the protocols used for authentication. | |
| RemoteCertificateValidationCallback | ServerCertificateValidationCallback [get, set] |
| Gets or sets the callback used to validate the certificate supplied by the server. | |
| string | TargetHost [get, set] |
| Gets or sets the target host server name. | |
Stores the parameters for the SslStream used by clients.
|
inline |
Initializes a new instance of the ClientSslConfiguration class with the specified target host server name.
| targetHost | A string that specifies the target host server name. |
| ArgumentNullException | targetHost is null. |
| ArgumentException | targetHost is an empty string. |
|
inline |
Initializes a new instance of the ClientSslConfiguration class that stores the parameters copied from the specified configuration.
| configuration | A ClientSslConfiguration 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 the collection of client certificates from which to select one to supply to the server.
A X509CertificateCollection or null.
The collection contains client certificates from which to select.
The default value is null.
|
getset |
Gets or sets the callback used to select the certificate to supply to the server.
No certificate is supplied if the callback returns null.
A LocalCertificateSelectionCallback delegate that invokes the method called for selecting the certificate.
The default value is a delegate that invokes a method that only returns null.
|
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 callback used to validate the certificate supplied by the server.
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 target host server name.
A string that represents the name of the server that will share a secure connection with a client.
| ArgumentNullException | The value specified for a set operation is null. |
| ArgumentException | The value specified for a set operation is an empty string. |