Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.net.ssl

Class HandshakeCompletedEvent

java.util.EventObject
|
+--javax.net.ssl.HandshakeCompletedEvent


public class HandshakeCompletedEvent

extends java.util.EventObject

An event raised by a SSLSocket and passed to the HandshakeCompletedListener#handshakeCompleted(HandshakeCompletedEvent) method of all registered listeners when a SSL handshake in a SSL protocol is completed.

Author:

Constructor Summary

HandshakeCompletedEvent(javax.net.ssl.SSLSocket socket, javax.net.ssl.SSLSession session)

Creates a new handshake completed event.

Method Summary

StringgetCipherSuite()

Returns the name of the cipher that was negotiated in this connection.
Certificate[]getLocalCertificates()

Returns the local certificates being used in this connection.
javax.security.cert.X509Certificate[]getPeerCertificateChain()

Certificate[]getPeerCertificates()

Returns the peer's certificates being used in this connection.
javax.net.ssl.SSLSessiongetSession()

Returns the SSL session object associated with this connection.
javax.net.ssl.SSLSocketgetSocket()

Returns the socket over which this connection is being negotiated.

Constructor Details

HandshakeCompletedEvent

public HandshakeCompletedEvent(javax.net.ssl.SSLSocket socket, javax.net.ssl.SSLSession session)

Creates a new handshake completed event.

Parameters:

Throws:


Method Details

getCipherSuite

public String getCipherSuite()

Returns the name of the cipher that was negotiated in this connection.

Returns:


getLocalCertificates

public Certificate[] getLocalCertificates()

Returns the local certificates being used in this connection.

Returns:


getPeerCertificateChain

public X509Certificate[] getPeerCertificateChain()


getPeerCertificates

public Certificate[] getPeerCertificates()

Returns the peer's certificates being used in this connection.

Returns:

Throws:


getSession

public SSLSession getSession()

Returns the SSL session object associated with this connection.

Returns:


getSocket

public SSLSocket getSocket()

Returns the socket over which this connection is being negotiated. This method is equivalent to the java.util.EventObject#getSource() method.

Returns: