Override/replace com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl by custo
Friends,
I have created a custom MySSLProtocolSocketFactory class which implements ProtocolSocketFactory class .I have implemented the overloaded createSocket() method of this class. However on using this class in org.apache.commons.httpclient.protocol.Protocol class , the jvm seems to pick up com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl class to implement the socket connection .
Is there any way to bypass the default implementation and enable my custom MySSLProtocolSocketFactory class ?
I usedd the following code to check the default SSLSocketFactory .
public class Test
{
public static void main (String args[])
{
Object fact=SSLSocketFactory.getDefault();
System.out.println(fact.getClass().toString());
}
}
Can anybody guide me for any pointers to resolve the same ?

