32 /**
33 * This event is propagated to a SSLSessionBindingListener.
34 * When a listener object is bound or unbound to an SSLSession by
35 * {@link SSLSession#putValue(String, Object)}
36 * or {@link SSLSession#removeValue(String)}, objects which
37 * implement the SSLSessionBindingListener will be receive an
38 * event of this type. The event's <code>name</code> field is the
39 * key in which the listener is being bound or unbound.
40 *
41 * @see SSLSession
42 * @see SSLSessionBindingListener
43 *
44 * @since 1.4
45 * @author Nathan Abramson
46 * @author David Brownell
47 */
48 public
49 class SSLSessionBindingEvent
50 extends EventObject
51 {
52 private static final long serialVersionUID = 3989172637106345L;
53
54 /**
55 * @serial The name to which the object is being bound or unbound
56 */
57 private String name;
58
59 /**
60 * Constructs a new SSLSessionBindingEvent.
61 *
62 * @param session the SSLSession acting as the source of the event
63 * @param name the name to which the object is being bound or unbound
64 * @exception IllegalArgumentException if <code>session</code> is null.
65 */
66 public SSLSessionBindingEvent(SSLSession session, String name)
67 {
68 super(session);
69 this.name = name;
70 }
71
|
32 /**
33 * This event is propagated to a SSLSessionBindingListener.
34 * When a listener object is bound or unbound to an SSLSession by
35 * {@link SSLSession#putValue(String, Object)}
36 * or {@link SSLSession#removeValue(String)}, objects which
37 * implement the SSLSessionBindingListener will be receive an
38 * event of this type. The event's <code>name</code> field is the
39 * key in which the listener is being bound or unbound.
40 *
41 * @see SSLSession
42 * @see SSLSessionBindingListener
43 *
44 * @since 1.4
45 * @author Nathan Abramson
46 * @author David Brownell
47 */
48 public
49 class SSLSessionBindingEvent
50 extends EventObject
51 {
52 @java.io.Serial
53 private static final long serialVersionUID = 3989172637106345L;
54
55 /**
56 * @serial The name to which the object is being bound or unbound
57 */
58 private String name;
59
60 /**
61 * Constructs a new SSLSessionBindingEvent.
62 *
63 * @param session the SSLSession acting as the source of the event
64 * @param name the name to which the object is being bound or unbound
65 * @exception IllegalArgumentException if <code>session</code> is null.
66 */
67 public SSLSessionBindingEvent(SSLSession session, String name)
68 {
69 super(session);
70 this.name = name;
71 }
72
|