Search code examples
javassljvmapache-httpclient-4.xjsse

Confusion about TLS 1.2 and jdk version


I understand that TLS 1.2 isn't supported by JDK 6. But I'm a little confused as to what this means exactly.

In my project, I've set my apache httpclient to use TLSv1.2 like this. My project is compiled with mvn which uses jdk 1.6 to run. Maven -source and -target are set to 1.6.

I use jdk1.7/bin/java to call my application. And I see that my connection is using TLSv1.2.

So does this mean that the word "supported" is referring to the JVM version that is running the application and not the JVM that compiled the project?

OR

Apache httpclient’s TLS version is not bound by JDK version?


Solution

  • So does this mean that the word "supported" is referring to the JVM version that is running the application and not the JVM that compiled the project?

    Yes!

    Only what matters in this case is version of runtime libraries on classpath.