1 package org.jacorb.security.ssl.iaik; 2 3 22 23 import java.io.*; 24 import org.omg.PortableInterceptor.*; 25 import org.omg.PortableInterceptor.ORBInitInfoPackage.*; 26 import org.omg.SecurityReplaceable.*; 27 import org.omg.Security.*; 28 29 36 37 public class SecurityServiceInitializer 38 extends org.omg.CORBA.LocalObject 39 implements ORBInitializer 40 { 41 44 public void post_init( ORBInitInfo info ) 45 { 46 try 47 { 48 org.omg.SecurityLevel2.Current current = null; 49 try 50 { 51 org.omg.CORBA.Object sc = 52 info.resolve_initial_references("SecurityCurrent"); 53 54 current = org.omg.SecurityLevel2.CurrentHelper.narrow(sc); 55 } 56 catch (InvalidName in) 57 { 58 } 59 60 info.add_server_request_interceptor(new ServerInvocationInterceptor(current)); 61 } 62 catch (DuplicateName duplicateName) 63 { 64 duplicateName.printStackTrace(); 65 } 66 } 67 68 public void pre_init(ORBInitInfo info) 69 { 70 73 75 } 76 } 78 79 80 81 82 83 | Popular Tags |