Skip to content

Commit

Permalink
Java 7 and prior ciphersuite limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
dma committed Oct 5, 2014
1 parent 1d1a42b commit 7c12c20
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ protected void prepareSocket(final SSLSocket socket) throws IOException {

if (ver < 1.8) {

String[] suites = new String[] {"TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA",
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_EMPTY_RENEGOTIATION_INFO_SCSV",
"TLS_RSA_WITH_AES_128_CBC_SHA"};
String[] suites = new String[] {"TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
"TLS_RSA_WITH_AES_128_CBC_SHA",
"SSL_RSA_WITH_RC4_128_SHA",
"TLS_EMPTY_RENEGOTIATION_INFO_SCSV"};

socket.setEnabledCipherSuites(suites);

}


}

private double javaVersionAsFloat() {
Expand Down

0 comments on commit 7c12c20

Please sign in to comment.