Code example for SSLSocketFactory

Methods: createSocket

0
    public static SocketFactory getDefault() {
    return new DummySSLSocketFactory(); 
    } 
 
    public Socket createSocket() throws IOException {
    return factory.createSocket();
    } 
 
        public Socket createSocket(Socket socket, String s, int i, boolean flag)
                throws IOException { 
    return factory.createSocket(socket, s, i, flag);
    } 
 
    public Socket createSocket(InetAddress inaddr, int i,
                InetAddress inaddr1, int j) throws IOException {
    return factory.createSocket(inaddr, i, inaddr1, j);
    } 
 
    public Socket createSocket(InetAddress inaddr, int i)
                throws IOException { 
    return factory.createSocket(inaddr, i);