Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds support for `enabledProtocols`

required per PCI compliance
commit e8cf5286104236a652be3d374b16ebccc66f2fc0 1 parent 8f682ad
@ar ar authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 jpos/src/main/java/org/jpos/iso/GenericSSLSocketFactory.java
View
6 jpos/src/main/java/org/jpos/iso/GenericSSLSocketFactory.java
@@ -61,6 +61,7 @@
private boolean clientAuthNeeded=false;
private boolean serverAuthNeeded=false;
private String[] enabledCipherSuites;
+ private String[] enabledProtocols;
private Configuration cfg;
@@ -189,6 +190,9 @@ public ServerSocket createServerSocket(int port)
if (enabledCipherSuites != null && enabledCipherSuites.length > 0) {
serverSocket.setEnabledCipherSuites(enabledCipherSuites);
}
+ if (enabledProtocols != null && enabledProtocols.length > 0) {
+ serverSocket.setEnabledProtocols(enabledProtocols);
+ }
return socket;
}
@@ -340,9 +344,9 @@ public void setConfiguration(Configuration cfg) throws ConfigurationException {
password = cfg.get("storepassword", null);
keyPassword = cfg.get("keypassword", null);
enabledCipherSuites = cfg.getAll("addEnabledCipherSuite");
+ enabledProtocols = cfg.getAll("addEnabledProtocol");
}
public Configuration getConfiguration() {
return cfg;
}
}
-
Please sign in to comment.
Something went wrong with that request. Please try again.