Reputation: 411
I am using a third-party package for managing OAuth connections. I would like to configure the cipher suites used by the SSL connection under the hood. Unfortunately, the third party creates the connection with URL.openConnection()
and I have no obvious way to reach the SSLSocketFactory in order to set the cipher suites. Is there a way to set this through, for example, a JVM parameter?
Thanks
Upvotes: 2
Views: 14213
Reputation: 122749
URL.openConnection()
(with an https://
URL) should use an HttpsURLConnection
. You should be able to use the https.cipherSuites
system property for this. (See table in the customization section of the JSSE ref. guide).
Upvotes: 6