Enabling TLS 1.3 in HTTP client defaults JDK-8145252-TLS13-branch
authorapetcher
Fri, 01 Jun 2018 15:37:07 -0400
branchJDK-8145252-TLS13-branch
changeset 56656 2a396fdb3afb
parent 56655 edae531632f5
child 56657 c09b8b8c0017
Enabling TLS 1.3 in HTTP client defaults
src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java	Fri Jun 01 11:51:38 2018 -0700
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java	Fri Jun 01 15:37:07 2018 -0400
@@ -298,7 +298,7 @@
 
     private static SSLParameters getDefaultParams(SSLContext ctx) {
         SSLParameters params = ctx.getSupportedSSLParameters();
-        params.setProtocols(new String[]{"TLSv1.2"});
+        params.setProtocols(new String[]{"TLSv1.2", "TLSv1.3"});
         return params;
     }