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 ; }
non - javadoc see interface LayeredSocketFactory