Try to find your classpath (in Eclipse, I do ctrl-shift-t for this) for SSLSocketFactory *. If you find it, set it as a property in the security class:
In my environment, I found the following two:
Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl");
or
Security.setProperty("ssl.SocketFactory.provider", "com.ibm.websphere.ssl.protocol.SSLSocketFactory");
(or for any other class you find)
Similarly for ServerSocketFactory , if you need server sockets.
Suppressingfire
source share