") must have secure socket factory.");
}
final SecureSocketFactory ssf =
(SecureSocketFactory)schm.getSocketFactory();
final Socket sock = ssf.createSocket
(conn.getSocket(), target.getHostName(), target.getPort(), true);
prepareSocket(sock, context, params);
final boolean secure = ssf.isSecure(sock);