Skip to content

Commit e8cf528

Browse files
committed
Adds support for enabledProtocols
required per PCI compliance
1 parent 8f682ad commit e8cf528

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jpos/src/main/java/org/jpos/iso/GenericSSLSocketFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class GenericSSLSocketFactory
6161
private boolean clientAuthNeeded=false;
6262
private boolean serverAuthNeeded=false;
6363
private String[] enabledCipherSuites;
64+
private String[] enabledProtocols;
6465

6566
private Configuration cfg;
6667

@@ -189,6 +190,9 @@ public ServerSocket createServerSocket(int port)
189190
if (enabledCipherSuites != null && enabledCipherSuites.length > 0) {
190191
serverSocket.setEnabledCipherSuites(enabledCipherSuites);
191192
}
193+
if (enabledProtocols != null && enabledProtocols.length > 0) {
194+
serverSocket.setEnabledProtocols(enabledProtocols);
195+
}
192196
return socket;
193197
}
194198

@@ -340,9 +344,9 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException {
340344
password = cfg.get("storepassword", null);
341345
keyPassword = cfg.get("keypassword", null);
342346
enabledCipherSuites = cfg.getAll("addEnabledCipherSuite");
347+
enabledProtocols = cfg.getAll("addEnabledProtocol");
343348
}
344349
public Configuration getConfiguration() {
345350
return cfg;
346351
}
347352
}
348-

0 commit comments

Comments
 (0)