always use NBConfiguration on SSL Factory

This commit is contained in:
Jonathan Shook
2021-11-19 17:37:05 -06:00
parent f71f98f046
commit 00047164ae
8 changed files with 58 additions and 37 deletions

View File

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