01: package org.jacorb.security.sas;
02:
03: /*
04: * JacORB - a free Java ORB
05: *
06: * Copyright (C) 2002-2004 Gerald Brose
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Library General Public License for more details.
17: *
18: * You should have received a copy of the GNU Library General Public
19: * License along with this library; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21: */
22:
23: import org.apache.avalon.framework.logger.Logger;
24: import org.omg.PortableInterceptor.ORBInitInfo;
25: import org.omg.PortableInterceptor.ORBInitializer;
26:
27: /**
28: * This initializes the SAS Client Security Service (CSS) Interceptor
29: *
30: * @author David Robison
31: * @version $Id: GSSUPProviderInitializer.java,v 1.9 2004/05/07 13:08:29 david.robison Exp $
32: */
33:
34: public class GSSUPProviderInitializer extends org.omg.CORBA.LocalObject
35: implements ORBInitializer {
36: private static Logger logger = null;
37:
38: /**
39: * This method registers the interceptors.
40: */
41: public void pre_init(ORBInitInfo info) {
42: /*
43: // save ORB
44: org.jacorb.security.sas.GSSUPProvider.orb =
45: ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl) info).getORB ();
46:
47: // save Codec
48: try
49: {
50: Encoding encoding =
51: new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0);
52: org.jacorb.security.sas.GSSUPProvider.codec =
53: info.codec_factory().create_codec(encoding);
54: }
55: catch (UnknownEncoding unknownEncoding)
56: {
57: // logger.error("UnknownEncoding", unknownEncoding);
58: }
59: */
60: }
61:
62: public void post_init(ORBInitInfo info) {
63: }
64: }
|