File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
jpos/src/main/java/org/jpos/iso Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public class GenericSSLSocketFactory
61
61
private boolean clientAuthNeeded =false ;
62
62
private boolean serverAuthNeeded =false ;
63
63
private String [] enabledCipherSuites ;
64
+ private String [] enabledProtocols ;
64
65
65
66
private Configuration cfg ;
66
67
@@ -189,6 +190,9 @@ public ServerSocket createServerSocket(int port)
189
190
if (enabledCipherSuites != null && enabledCipherSuites .length > 0 ) {
190
191
serverSocket .setEnabledCipherSuites (enabledCipherSuites );
191
192
}
193
+ if (enabledProtocols != null && enabledProtocols .length > 0 ) {
194
+ serverSocket .setEnabledProtocols (enabledProtocols );
195
+ }
192
196
return socket ;
193
197
}
194
198
@@ -340,9 +344,9 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException {
340
344
password = cfg .get ("storepassword" , null );
341
345
keyPassword = cfg .get ("keypassword" , null );
342
346
enabledCipherSuites = cfg .getAll ("addEnabledCipherSuite" );
347
+ enabledProtocols = cfg .getAll ("addEnabledProtocol" );
343
348
}
344
349
public Configuration getConfiguration () {
345
350
return cfg ;
346
351
}
347
352
}
348
-
You can’t perform that action at this time.
0 commit comments