Class MongoDBSslUtils
- java.lang.Object
-
- org.apache.flink.cdc.connectors.mongodb.source.utils.MongoDBSslUtils
-
public class MongoDBSslUtils extends Object
Utilities for building SSL context from MongoDB connector configuration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SSLContextcreateSSLContext(MongoDBSourceConfig config)Creates a customSSLContextfrom the givenMongoDBSourceConfig.
-
-
-
Method Detail
-
createSSLContext
@Nullable public static SSLContext createSSLContext(MongoDBSourceConfig config)
Creates a customSSLContextfrom the givenMongoDBSourceConfig. If neither keystore nor truststore is configured, returnsnullwhich lets the driver use the JVM default SSL context.
-
-