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()