1 21 package org.jacorb.security.level2; 22 23 import org.omg.SecurityLevel2.Current; 24 25 30 31 public class ServerInitializer 32 extends org.omg.CORBA.LocalObject 33 implements org.omg.PortableInterceptor.ORBInitializer 34 { 35 36 public ServerInitializer() 37 { 38 } 39 40 44 public void post_init(org.omg.PortableInterceptor.ORBInitInfo info) 45 { 46 try 47 { 48 Current current = 49 (Current) info.resolve_initial_references("SecurityCurrent"); 50 51 info.add_server_request_interceptor 52 (new ServerAccessDecisionInterceptor(current)); 53 } 54 catch (Exception e) 55 { 56 } 57 } 58 59 63 public void pre_init(org.omg.PortableInterceptor.ORBInitInfo info) 64 { 65 66 } 67 68 } 70 71 72 73 74 75 | Popular Tags |