Code example for HandshakeCompletedEvent

Methods: getSocket

     * @throws IOException 
    public final void test_getSocket() throws IOException { 
        SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket();
        HandshakeCompletedEvent event = new HandshakeCompletedEvent(socket, null);
        SSLSocket ss = event.getSocket();
        assertEquals(socket, ss);
    // Regression test for CompletedHandshakeEvent not firing with a custom 
    // TrustManager 
    SSLSocket socket;
    SSLSocket serverSocket;
    MyHandshakeListener listener;
    int port = Support_PortManager.getNextPort();
Connect your IDE to all the code out there  Get Codota for Java