Click or drag to resize

SslStreamSettingsWith Method

Returns a new SsslStreamSettings instance with some settings changed.

Namespace:  MongoDB.Driver.Core.Configuration
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public SslStreamSettings With(
	Optional<bool> checkCertificateRevocation = null,
	Optional<IEnumerable<X509Certificate>> clientCertificates = null,
	Optional<LocalCertificateSelectionCallback> clientCertificateSelectionCallback = null,
	Optional<SslProtocols> enabledProtocols = null,
	Optional<RemoteCertificateValidationCallback> serverCertificateValidationCallback = null
)

Parameters

checkCertificateRevocation (Optional)
Type: MongoDB.DriverOptionalBoolean
Whether to check certificate revocation.
clientCertificates (Optional)
Type: MongoDB.DriverOptionalIEnumerableX509Certificate
The client certificates.
clientCertificateSelectionCallback (Optional)
Type: MongoDB.DriverOptionalLocalCertificateSelectionCallback
The client certificate selection callback.
enabledProtocols (Optional)
Type: MongoDB.DriverOptionalSslProtocols
The enabled protocols.
serverCertificateValidationCallback (Optional)
Type: MongoDB.DriverOptionalRemoteCertificateValidationCallback
The server certificate validation callback.

Return Value

Type: SslStreamSettings
A new SsslStreamSettings instance.
See Also