Code example for SSLSocketFactory

Methods: getSupportedCipherSuites

0
            return factory.getDefaultCipherSuites();
        } 
 
        @Override 
        public String[] getSupportedCipherSuites() {
            return factory.getSupportedCipherSuites();
        } 
 
        @Override 
        public Socket createSocket(Socket socket, String s, int i, boolean flag)
                throws IOException { 
            SSLSocket result =
                (SSLSocket) factory.createSocket(socket, s, i, flag);
            result.setEnabledProtocols(new String[] { "SSLv3" } );
            return result;
        } 
 
        @Override 
        public Socket createSocket(String s, int i) throws IOException,
                UnknownHostException { 
            SSLSocket result = (SSLSocket) factory.createSocket(s, i);