All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.net.ssl.HandshakeCompletedEvent

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

public class HandshakeCompletedEvent
extends EventObject
This event indicates that an SSL handshake completed on a given SSL connection. All of the core information about that handshake's result is captured through an "SSLSession" object. As a convenience, this event class provides direct access to to some important session attributes.

The source of this event is the SSLSocket on which handshaking just completed.

See Also:
SSLSocket, HandshakeCompletedListener, SSLSession

Constructor Index

 o HandshakeCompletedEvent(SSLSocket, SSLSession)
Constructs a new HandshakeCompletedEvent.

Method Index

 o getCipherSuite()
Returns the cipher suite in use by the session which was produced by the handshake.
 o getPeerCertificateChain()
Returns the identity of the peer which was identified as part of defining the session.
 o getSession()
Returns the session which was produced by the handshake.
 o getSocket()
Returns the socket which is the source of this event.

Constructors

 o HandshakeCompletedEvent
 public HandshakeCompletedEvent(SSLSocket sock,
                                SSLSession s)
Constructs a new HandshakeCompletedEvent.

Parameters:
sock - the SSLSocket acting as the source of the event
the - SSLSession this event is associated with

Methods

 o getSession
 public SSLSession getSession()
Returns the session which was produced by the handshake.

 o getCipherSuite
 public String getCipherSuite()
Returns the cipher suite in use by the session which was produced by the handshake.

 o getPeerCertificateChain
 public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
Returns the identity of the peer which was identified as part of defining the session.

 o getSocket
 public SSLSocket getSocket()
Returns the socket which is the source of this event. (This is a convenience function, to let applications write code without type casts.)


All Packages  Class Hierarchy  This Package  Previous  Next  Index