01: /*
02: * JacORB - a free Java ORB
03: *
04: * Copyright (C) The JacORB project, 1997-2006.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Library General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Library General Public License for more details.
15: *
16: * You should have received a copy of the GNU Library General Public
17: * License along with this library; if not, write to the Free
18: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19: */
20:
21: package org.jacorb.orb.listener;
22:
23: import java.util.EventListener;
24:
25: /**
26: * The <code>SSLSessionListener</code> interface defines methods for a
27: * developer to implement in order to receive notifications of SSL
28: * events from JacORB.
29: *
30: * @author Nick Cross
31: * @version $Id: SSLSessionListener.java,v 1.1 2006/06/26 08:08:24 alphonse.bendt Exp $
32: */
33: public interface SSLSessionListener extends EventListener {
34: /**
35: * <code>sessionCreated</code> is called whenever a successful SSL
36: * connection has been made.
37: *
38: * @param e a <code>SSLSessionEvent</code> value
39: */
40: void sessionCreated(SSLSessionEvent e);
41:
42: /**
43: * <code>handshakeException</code> is called whenever the client
44: * and server could not negotiate the desired level of security.
45: *
46: * @param e a <code>SSLSessionEvent</code> value
47: */
48: void handshakeException(SSLSessionEvent e);
49:
50: /**
51: * <code>keyException</code> is called whenever a bad SSL key is
52: * reported. Normally, this indicates misconfiguration of the server or
53: * client SSL certificate and private key.
54:
55: *
56: * @param e a <code>SSLSessionEvent</code> value
57: */
58: void keyException(SSLSessionEvent e);
59:
60: /**
61: * <code>peerUnverifiedException</code> is called whenever the peer was not
62: * able to identify itself (for example; no certificate, the particular
63: * cipher suite being used does not support authentication, or no peer
64: * authentication was established during SSL handshaking)
65: *
66: * @param e a <code>SSLSessionEvent</code> value
67: */
68: void peerUnverifiedException(SSLSessionEvent e);
69:
70: /**
71: * <code>protocolException</code> is called whenever there is an error in
72: * the operation of the SSL protocol. Normally this indicates a flaw in one
73: * of the protocol implementations.
74: *
75: * @param e a <code>SSLSessionEvent</code> value
76: */
77: void protocolException(SSLSessionEvent e);
78:
79: /**
80: * <code>sslException</code> is called whenever there is an error in the SSL
81: * subsystem. This may be called if the error does not fit into one of the above
82: * categories.
83: *
84: * @param e a <code>SSLSessionEvent</code> value
85: */
86: void sslException(SSLSessionEvent e);
87: }
|