01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999-2004 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or 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: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: */package org.objectweb.jonas.security.interceptors.iiop;
22:
23: import org.omg.CORBA.LocalObject;
24: import org.omg.PortableInterceptor.ORBInitInfo;
25: import org.omg.PortableInterceptor.ORBInitializer;
26:
27: /**
28: * Class <code>SecurityInitializer</code> is a Security Interceptor
29: * initialisation for jonas
30: * @author Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
31: * @version 1.0, 13/09/2002
32: */
33: public class SecurityInitializer extends LocalObject implements
34: ORBInitializer {
35:
36: public void pre_init(ORBInitInfo info) {
37: // do nothing
38: }
39:
40: public void post_init(ORBInitInfo info) {
41: try {
42: info
43: .add_client_request_interceptor(new CorbaClientSecurityInterceptor(
44: info));
45: info
46: .add_server_request_interceptor(new CorbaServerSecurityInterceptor(
47: info));
48: } catch (Exception e) {
49: e.printStackTrace();
50: }
51: }
52:
53: }
|