use NBConfiguration in some types

This commit is contained in:
Jonathan Shook
2021-07-20 18:26:20 -05:00
parent a12efd0db6
commit 69fc74c409
10 changed files with 184 additions and 172 deletions

View File

@@ -46,7 +46,7 @@ public class TCPClientActivity extends StdoutActivity {
SocketFactory socketFactory = SocketFactory.getDefault();
boolean sslEnabled = activityDef.getParams().getOptionalBoolean("ssl").orElse(false);
if (sslEnabled) {
socketFactory = SSLKsFactory.get().createSocketFactory(activityDef);
socketFactory = SSLKsFactory.get().createSocketFactory(activityDef.getParams());
}
String host = getActivityDef().getParams().getOptionalString("host").orElse("localhost");

View File

@@ -56,7 +56,7 @@ public class TCPServerActivity extends StdoutActivity {
queue = new LinkedBlockingQueue<>(capacity);
if (sslEnabled) {
socketFactory = SSLKsFactory.get().createSSLServerSocketFactory(activityDef);
socketFactory = SSLKsFactory.get().createSSLServerSocketFactory(activityDef.getParams());
} else {
socketFactory = ServerSocketFactory.getDefault();
}