mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
always use NBConfiguration on SSL Factory
This commit is contained in:
@@ -61,10 +61,6 @@ public class SSLKsFactory implements NBMapConfigurable {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public ServerSocketFactory createSSLServerSocketFactory(Map<String, Object> cfgmap) {
|
||||
return createSSLServerSocketFactory(getConfigModel().apply(cfgmap));
|
||||
}
|
||||
|
||||
public ServerSocketFactory createSSLServerSocketFactory(NBConfiguration cfg) {
|
||||
SSLContext context = getContext(cfg);
|
||||
if (context == null) {
|
||||
@@ -73,10 +69,6 @@ public class SSLKsFactory implements NBMapConfigurable {
|
||||
return context.getServerSocketFactory();
|
||||
}
|
||||
|
||||
public SocketFactory createSocketFactory(Map<String, Object> cfgmap) {
|
||||
return createSocketFactory(getConfigModel().apply(cfgmap));
|
||||
}
|
||||
|
||||
public SocketFactory createSocketFactory(NBConfiguration cfg) {
|
||||
SSLContext context = getContext(cfg);
|
||||
if (context == null) {
|
||||
@@ -85,10 +77,6 @@ public class SSLKsFactory implements NBMapConfigurable {
|
||||
return context.getSocketFactory();
|
||||
}
|
||||
|
||||
public SSLContext getContext(Map<String, Object> cfgmap) {
|
||||
return getContext(getConfigModel().apply(cfgmap));
|
||||
}
|
||||
|
||||
public SSLContext getContext(NBConfiguration cfg) {
|
||||
Optional<String> sslParam = cfg.getOptional(SSL);
|
||||
if (sslParam.isPresent()) {
|
||||
|
||||
Reference in New Issue
Block a user