javax.net.ssl
Class HandshakeCompletedEvent
java.util.EventObject
javax.net.ssl.HandshakeCompletedEvent
public class HandshakeCompletedEvent
extends java.util.EventObject
- Casey Marshall (rsdio@metastatic.org)
HandshakeCompletedEvent
public HandshakeCompletedEvent(SSLSocket socket,
SSLSession session)
Creates a new handshake completed event.
socket
- The socket (also the source) creating this event.session
- The associated session object.
getCipherSuite
public String getCipherSuite()
Returns the name of the cipher that was negotiated in this
connection.
- The negotiated cipher name.
getLocalCertificates
public Certificate[] getLocalCertificates()
Returns the local certificates being used in this connection.
getPeerCertificates
public Certificate[] getPeerCertificates()
throws SSLPeerUnverifiedException
Returns the peer's certificates being used in this connection.
getSession
public SSLSession getSession()
Returns the SSL session object associated with this connection.
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.