1 25 26 package org.objectweb.easybeans.security.propagation.rmi.jrmp.interceptors; 27 28 import org.objectweb.carol.rmi.jrmp.interceptor.JDuplicateName; 29 import org.objectweb.carol.rmi.jrmp.interceptor.JInitializer; 30 import org.objectweb.carol.rmi.jrmp.interceptor.JInitInfo; 31 32 36 public class SecurityInitializer implements JInitializer { 37 38 42 public void pre_init(final JInitInfo info) { 43 try { 44 info.add_client_request_interceptor(new ClientSecurityInterceptor()); 45 } catch (JDuplicateName e) { 46 throw new IllegalStateException ("Cannot add the client interceptor for EasyBeans security", e); 47 } 48 try { 49 info.add_server_request_interceptor(new ServerSecurityInterceptor()); 50 } catch (JDuplicateName e) { 51 throw new IllegalStateException ("Cannot add the server interceptor for EasyBeans security", e); 52 } 53 54 } 55 56 60 public void post_init(final JInitInfo info) { 61 } 63 64 } 65 | Popular Tags |