KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)SSLSessionBindingListener.java 1.8 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.EventListener;
19
20 /**
21  * This interface is implemented by objects which want to know when
22  * they are being bound or unbound from a SSLSession. When either event
23  * occurs via {@link SSLSession#putValue(String, Object)}
24  * or {@link SSLSession#removeValue(String)}, the event is communicated
25  * through a SSLSessionBindingEvent identifying the session.
26  *
27  * @see SSLSession
28  * @see SSLSessionBindingEvent
29  *
30  * @since 1.4
31  * @author Nathan Abramson
32  * @author David Brownell
33  * @version 1.11
34  */

35 public interface SSLSessionBindingListener extends EventListener
36 {
37
38     /**
39      * This is called to notify the listener that it is being bound into
40      * an SSLSession.
41      *
42      * @param event the event identifying the SSLSession into
43      * which the listener is being bound.
44      */

45     public void valueBound(SSLSessionBindingEvent event);
46
47     /**
48      * This is called to notify the listener that it is being unbound
49      * from a SSLSession.
50      *
51      * @param event the event identifying the SSLSession from
52      * which the listener is being unbound.
53      */

54     public void valueUnbound(SSLSessionBindingEvent event);
55 }
56
Popular Tags