add hook for custom ssl factory and AcceptAllSocketFactory implementation