< prev index next >

src/java.base/share/classes/javax/net/ssl/HandshakeCompletedEvent.java

Print this page




  32 
  33 /**
  34  * This event indicates that an SSL handshake completed on a given
  35  * SSL connection.  All of the core information about that handshake's
  36  * result is captured through an "SSLSession" object.  As a convenience,
  37  * this event class provides direct access to some important session
  38  * attributes.
  39  *
  40  * <P> The source of this event is the SSLSocket on which handshaking
  41  * just completed.
  42  *
  43  * @see SSLSocket
  44  * @see HandshakeCompletedListener
  45  * @see SSLSession
  46  *
  47  * @since 1.4
  48  * @author David Brownell
  49  */
  50 public class HandshakeCompletedEvent extends EventObject
  51 {

  52     private static final long serialVersionUID = 7914963744257769778L;
  53 
  54     private transient SSLSession session;
  55 
  56     /**
  57      * Constructs a new HandshakeCompletedEvent.
  58      *
  59      * @param sock the SSLSocket acting as the source of the event
  60      * @param s the SSLSession this event is associated with
  61      */
  62     public HandshakeCompletedEvent(SSLSocket sock, SSLSession s)
  63     {
  64         super(sock);
  65         session = s;
  66     }
  67 
  68 
  69     /**
  70      * Returns the session that triggered this event.
  71      *




  32 
  33 /**
  34  * This event indicates that an SSL handshake completed on a given
  35  * SSL connection.  All of the core information about that handshake's
  36  * result is captured through an "SSLSession" object.  As a convenience,
  37  * this event class provides direct access to some important session
  38  * attributes.
  39  *
  40  * <P> The source of this event is the SSLSocket on which handshaking
  41  * just completed.
  42  *
  43  * @see SSLSocket
  44  * @see HandshakeCompletedListener
  45  * @see SSLSession
  46  *
  47  * @since 1.4
  48  * @author David Brownell
  49  */
  50 public class HandshakeCompletedEvent extends EventObject
  51 {
  52     @java.io.Serial
  53     private static final long serialVersionUID = 7914963744257769778L;
  54 
  55     private transient SSLSession session;
  56 
  57     /**
  58      * Constructs a new HandshakeCompletedEvent.
  59      *
  60      * @param sock the SSLSocket acting as the source of the event
  61      * @param s the SSLSession this event is associated with
  62      */
  63     public HandshakeCompletedEvent(SSLSocket sock, SSLSession s)
  64     {
  65         super(sock);
  66         session = s;
  67     }
  68 
  69 
  70     /**
  71      * Returns the session that triggered this event.
  72      *


< prev index next >