Constructor SslStreamSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
SslStreamSettings(Optional<bool>, Optional<IEnumerable<X509Certificate>>, Optional<LocalCertificateSelectionCallback>, Optional<SslProtocols>, Optional<RemoteCertificateValidationCallback>)
Initializes a new instance of the SslStreamSettings class.
public SslStreamSettings(Optional<bool> checkCertificateRevocation = default, Optional<IEnumerable<X509Certificate>> clientCertificates = default, Optional<LocalCertificateSelectionCallback> clientCertificateSelectionCallback = default, Optional<SslProtocols> enabledProtocols = default, Optional<RemoteCertificateValidationCallback> serverCertificateValidationCallback = default)
Parameters
checkCertificateRevocation
Optional<bool>Whether to check for certificate revocation.
clientCertificates
Optional<IEnumerable<X509Certificate>>The client certificates.
clientCertificateSelectionCallback
Optional<LocalCertificateSelectionCallback>The client certificate selection callback.
enabledProtocols
Optional<SslProtocols>The enabled protocols.
serverCertificateValidationCallback
Optional<RemoteCertificateValidationCallback>The server certificate validation callback.