I am trying to create my own implementation of javax.net.ssl.SSLSocketFactory to catch all HTTP / SSL requests, send third party libraries and write them down. This is how the factory is called in this library (this is commons-httpclient):
import javax.net.ssl.SSLSocketFactory; // ... return SSLSocketFactory.getDefault().createSocket(host, port);
The current implementation used is com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl . How can I change it to my own class?
source share