code: public Socket createSocket(
          final Socket socket,
          final String host,
          final int port,
          final boolean autoClose
      ) throws IOException, UnknownHostException {
          SSLSocket sslSocket = (SSLSocket) this.socketfactory.createSocket(
                socket,
                host,
                port,
                autoClose
          );
          hostnameVerifier.verify(host, sslSocket);
          // verifyHostName() didn't blowup - good!
          return sslSocket;
      }
docs: non-javadoc, see interface LayeredSocketFactory