question: public static Socket createSocket ( InetAddress address , int port ) throws IOException { Socket socket = null ; setKeystore ( ) ; SSLSocketFactory f = ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ; SSLSocket secureSocket = ( SSLSocket ) f . createSocket ( ) ; secureSocket . connect ( new InetSocketAddress ( address , port ) , SysProperties . SOCKET_CONNECT_TIMEOUT ) ; secureSocket . setEnabledProtocols ( disableSSL ( secureSocket . getEnabledProtocols ( ) ) ) ; if ( SysProperties . ENABLE_ANONYMOUS_TLS ) { String [ ] list = enableAnonymous ( secureSocket . getEnabledCipherSuites ( ) , secureSocket . getSupportedCipherSuites ( ) ) ; secureSocket . setEnabledCipherSuites ( list ) ; } socket = secureSocket ; return socket ; }
target:  Create a secure client socket that is connected to the given address and port.