Code example for SSLSocket

Methods: setEnabledCipherSuites, setEnabledProtocols

    catch (ConnectException e) {
      throw new VerboseConnectException(e, "SSL end point " + remoteEndPoint);
    return socket;
   * <p>Factory method for client sockets that are layered over 
   * existing sockets. Used to establish HTTPS proxy connections.</p> 
   * <p>The SSL socket takes ownership of the existing socket; when 
   * the SSL socket is closed, the existing socket will also be 
   * closed.</p> 
   * @param existingSocket The existing socket. 
   * @param remoteEndPoint Remote host and port. Not the proxy. As far as I