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 * 72 * @return the <code>SSLSession</code> for this handshake 73 */ 74 public SSLSession getSession() 75 { 76 return session; 77 } 78 79 80 /** 81 * Returns the cipher suite in use by the session which was produced 82 * by the handshake. (This is a convenience method for 83 * getting the ciphersuite from the SSLsession.) 84 * | 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 source the source of the event 60 * @param s the SSLSession this event is associated with 61 */ 62 public HandshakeCompletedEvent(Object source, SSLSession s) 63 { 64 super(source); 65 session = s; 66 } 67 68 69 /** 70 * Returns the session that triggered this event. 71 * 72 * @return the <code>SSLSession</code> for this handshake 73 */ 74 public SSLSession getSession() 75 { 76 return session; 77 } 78 79 80 /** 81 * Returns the cipher suite in use by the session which was produced 82 * by the handshake. (This is a convenience method for 83 * getting the ciphersuite from the SSLsession.) 84 * |