Code example for HandshakeCompletedEvent

Methods: getLocalCertificates

0
     * javax.net.ssl.HandshakeCompletedEvent#getLocalCertificates() 
     */ 
    public final void test_getLocalCertificates() throws Exception { 
        mySSLSession session = new mySSLSession("localhost", 1080, null);
        SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket();
        HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session);
        assertNull(event.getLocalCertificates());
    } 
 
    /** 
     * @throws IOException 
     * javax.net.ssl.HandshakeCompletedEvent#getLocalPrincipal() 
     */ 
    public final void test_getLocalPrincipal() throws Exception { 
        mySSLSession session = new mySSLSession("localhost", 1080, null);
        SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket();
        HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, session);
        assertNull(event.getLocalPrincipal());
    } 
 
    /**