Code example for SSLServerSocketFactory

Methods: getDefaultCipherSuites

0
     */ 
    public void test_getDefaultCipherSuites() { 
        SSLServerSocketFactory ssf = (SSLServerSocketFactory) SSLServerSocketFactory
                .getDefault();
        try { 
            assertTrue(ssf.getDefaultCipherSuites().length > 0);
        } catch (Exception e) {
            fail("Unexpected exception " + e);
        } 
    } 
 
    /** 
     * javax.net.ssl.SSLServerSocketFactory#getSupportedCipherSuites() 
     */ 
    public void test_getSupportedCipherSuites() { 
        SSLServerSocketFactory ssf = (SSLServerSocketFactory) SSLServerSocketFactory
                .getDefault();
        try { 
            assertTrue(ssf.getSupportedCipherSuites().length > 0);
        } catch (Exception e) {
            fail("Unexpected exception " + e);