1 package org.jacorb.security.sas; 2 3 /* 4 * JacORB - a free Java ORB 5 * 6 * Copyright (C) 2002-2004 Gerald Brose 7 * 8 * This library is free software; you can redistribute it and/or 9 * 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 35 extends org.omg.CORBA.LocalObject 36 implements ORBInitializer 37 { 38 private static Logger logger = null; 39 40 /** 41 * This method registers the interceptors. 42 */ 43 public void pre_init( ORBInitInfo info ) 44 { 45 /* 46 // save ORB 47 org.jacorb.security.sas.GSSUPProvider.orb = 48 ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl) info).getORB (); 49 50 // save Codec 51 try 52 { 53 Encoding encoding = 54 new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0); 55 org.jacorb.security.sas.GSSUPProvider.codec = 56 info.codec_factory().create_codec(encoding); 57 } 58 catch (UnknownEncoding unknownEncoding) 59 { 60 // logger.error("UnknownEncoding", unknownEncoding); 61 } 62 */ 63 } 64 65 public void post_init(ORBInitInfo info) 66 { 67 } 68 } 69