Code example for SSLServerSocketFactory

Methods: getDefaultCipherSuites

0
        assertFalse(factory.equals(factory1));
        assertFalse(factory1.equals(factory));
         
        SSLServerSocketFactory tmpfac = (SSLServerSocketFactory) SSLServerSocketFactory
                .getDefault();        
        factory1 = new SslRMIServerSocketFactory(tmpfac.getDefaultCipherSuites(),
                null, false); 
        assertFalse(factory.equals(factory1));
        assertFalse(factory1.equals(factory));
 
        try { 
            new SslRMIServerSocketFactory(new String[] { "Incorrect" }, null,
                    false); 
            fail("No expected IllegalArgumentException");
        } catch (IllegalArgumentException e) {
        } 
 
        try { 
            new SslRMIServerSocketFactory(null, new String[] { "Incorrect" },
                    false);