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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public SslStreamSettings With(
Optional<bool> checkCertificateRevocation = default,
Optional<IEnumerable<X509Certificate>> clientCertificates = default,
Optional<LocalCertificateSelectionCallback> clientCertificateSelectionCallback = default,
Optional<SslProtocols> enabledProtocols = default,
Optional<RemoteCertificateValidationCallback> serverCertificateValidationCallback = default
)
Public Function With (
Optional checkCertificateRevocation As Optional(Of Boolean) = Nothing,
Optional clientCertificates As Optional(Of IEnumerable(Of X509Certificate)) = Nothing,
Optional clientCertificateSelectionCallback As Optional(Of LocalCertificateSelectionCallback) = Nothing,
Optional enabledProtocols As Optional(Of SslProtocols) = Nothing,
Optional serverCertificateValidationCallback As Optional(Of RemoteCertificateValidationCallback) = Nothing
) As SslStreamSettings
member With :
?checkCertificateRevocation : Optional<bool> *
?clientCertificates : Optional<IEnumerable<X509Certificate>> *
?clientCertificateSelectionCallback : Optional<LocalCertificateSelectionCallback> *
?enabledProtocols : Optional<SslProtocols> *
?serverCertificateValidationCallback : Optional<RemoteCertificateValidationCallback>
(* Defaults:
let _checkCertificateRevocation = defaultArg checkCertificateRevocation new Optional<bool>()
let _clientCertificates = defaultArg clientCertificates new Optional<IEnumerable<X509Certificate>>()
let _clientCertificateSelectionCallback = defaultArg clientCertificateSelectionCallback new Optional<LocalCertificateSelectionCallback>()
let _enabledProtocols = defaultArg enabledProtocols new Optional<SslProtocols>()
let _serverCertificateValidationCallback = defaultArg serverCertificateValidationCallback new Optional<RemoteCertificateValidationCallback>()
*)
-> SslStreamSettings
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:
SslStreamSettingsA new SsslStreamSettings instance.
See Also