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:- Casey Marshall (rsdio@metastatic.org)
HandshakeCompletedEvent
public HandshakeCompletedEvent(javax.net.ssl.SSLSocket socket, javax.net.ssl.SSLSession session) Creates a new handshake completed event.
Parameters:
Throws:
getCipherSuite
public String getCipherSuite() Returns the name of the cipher that was negotiated in this
connection.
Returns:
- The negotiated cipher name.
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: