Code example for SSLSocket

Methods: getSession

0
    /** 
     * javax.net.ssl.SSLSocket#getSession() 
     */ 
    public void test_getSession() throws IOException { 
        SSLSocket ssl = getSSLSocket();
        assertNotNull(ssl.getSession());
        ssl.close();
    } 
 
    /** 
     * javax.net.ssl.SSLSocket#getSupportedCipherSuites() 
     */ 
    public void test_getSupportedCipherSuites() throws IOException { 
        SSLSocket ssl = getSSLSocket();
        String[] res = ssl.getSupportedCipherSuites();
        assertTrue("no supported cipher suites", res.length > 0);
        ssl.close();
    } 
 
    /** 
     * javax.net.ssl.SSLSocket#getEnabledCipherSuites()