KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > net > ssl > SSLSessionBindingEvent


1 /*
2  * @(#)SSLSessionBindingEvent.java 1.10 04/02/16
3  *
4  * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7   
8 /*
9  * NOTE:
10  * Because of various external restrictions (i.e. US export
11  * regulations, etc.), the actual source code can not be provided
12  * at this time. This file represents the skeleton of the source
13  * file, so that javadocs of the API can be created.
14  */

15
16 package javax.net.ssl;
17
18 import java.util.EventObject;
19
20 /**
21  * This event is propagated to a SSLSessionBindingListener.
22  * When a listener object is bound or unbound to an SSLSession by
23  * {@link SSLSession#putValue(String, Object)}
24  * or {@link SSLSession#removeValue(String)}, objects which
25  * implement the SSLSessionBindingListener will be receive an
26  * event of this type. The event's <code>name</code> field is the
27  * key in which the listener is being bound or unbound.
28  *
29  * @see SSLSession
30  * @see SSLSessionBindingListener
31  *
32  * @since 1.4
33  * @author Nathan Abramson
34  * @author David Brownell
35  * @version 1.14
36  */

37 public class SSLSessionBindingEvent extends EventObject
38 {
39     /**
40      * @serial The name to which the object is being bound or unbound
41      */

42     private String name;
43
44     /**
45      * Constructs a new SSLSessionBindingEvent.
46      *
47      * @param session the SSLSession acting as the source of the event
48      * @param name the name to which the object is being bound or unbound
49      */

50     public SSLSessionBindingEvent(SSLSession session, String name) { }
51
52     /**
53      * Returns the name to which the object is being bound, or the name
54      * from which the object is being unbound.
55      *
56      * @return the name to which the object is being bound or unbound
57      */

58     public String getName() {
59         return null;
60     }
61
62     /**
63      * Returns the SSLSession into which the listener is being bound or
64      * from which the listener is being unbound.
65      *
66      * @return the <code>SSLSession</code>
67      */

68     public SSLSession getSession() {
69         return null;
70     }
71 }
72
Popular Tags