public DummySSLSocketFactory()
    {
        try
        {
            SSLContext sslcontent = SSLContext.getInstance("TLS");
            sslcontent.init(null, new TrustManager[]{new DummyTrustManager()}, new java.security.SecureRandom());
            factory = sslcontent.getSocketFactory();
        }
        catch (NoSuchAlgorithmException e)
        {
            e.printStackTrace(System.out);
        }
        catch (KeyManagementException e)
        {
            e.printStackTrace(System.out);
        }
    }