If you use a properties file to configure your application then set
these two properties properties based on your version of java being
used (examples below). If you don't use a properties file then you
will need to figure out a good place in your code to set these two
properties or set them from the command line. The document your
referenced has what you needed other than it skipped over the least
used property but the one probably most relevant to your situation.
https.protocols=" TLSv1.2,TLSv1.1,TLSv1 "
jdk.tls.client.protocols=" TLSv1.2,TLSv1.1,TLSv1 "
SSLSocket s = (SSLSocket)factory.createSocket(adr, port);
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.