Name
HandshakeCompletedListener
Synopsis
This interface is implemented by any
class that wants to receive notifications (in the form of a call to
handshakeCompleted(
)
method) when an SSLSocket
completes the SSL handshake. Register a
HandshakeCompletedListener
for an
SSLSocket
by passing it to the
addHandshakeCompletedListener( )
method of the
socket. When the socket completes the handshake phase of connection,
it will call the handshakeCompleted( )
method of
all registered listeners, passing in a
HandshakeCompletedEvent
object.
Figure 18-3. javax.net.ssl.HandshakeCompletedListener
public interface HandshakeCompletedListener extends java.util.EventListener { // Public Instance Methods void handshakeCompleted(HandshakeCompletedEvent event); }
Passed To
SSLSocket.{addHandshakeCompletedListener( )
,
removeHandshakeCompletedListener( )}
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.