public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException { Socket s = this.factory.createSocket(host, port, clientHost, clientPort); if (s instanceof SSLSocket) { SSLSocket ssl = (SSLSocket) s; ssl.setEnabledCipherSuites(this.getNoAuthCiperSuites(ssl.getEnabledCipherSuites())); } return s; }