public static class SSLSettings.Builder extends Object
| Constructor and Description |
|---|
SSLSettings.Builder() |
| Modifier and Type | Method and Description |
|---|---|
SSLSettings.Builder |
applyConnectionString(ConnectionString connectionString)
Take the settings from the given ConnectionString and set them in this builder.
|
SSLSettings |
build()
Create a new SSLSettings from the settings in this builder.
|
SSLSettings.Builder |
enabled(boolean enabled)
Define whether SSL should be enabled.
|
public SSLSettings.Builder enabled(boolean enabled)
enabled - should be true if SSL is to be enabled.public SSLSettings.Builder applyConnectionString(ConnectionString connectionString)
connectionString - a URI with details on how to connect to MongoDB.public SSLSettings build()