(SSLSocketFactory) SSLSocketFactory.getDefault();
public Socket createSocket(String host, int port, InetAddress localAddress,
int localPort) throws IOException {
Socket socket = new TimedSocketWrapper(sslFactory.createSocket());
InetSocketAddress endpoint = new InetSocketAddress(host, port);
socket.bind(new InetSocketAddress(localAddress, localPort));
socket.connect(endpoint);
return socket;
}