01: package com.salmonllc.remote.server;
02:
03: /**
04: * Created by IntelliJ IDEA.
05: * User: Fred Cahill
06: * Date: Sep 29, 2004
07: * Time: 9:24:36 AM
08: * To change this template use Options | File Templates.
09: */
10: /**
11: * This interface is used to describe a policy used by the RemoteReflector servlet to see if execution is allowed.
12: * The RemoteReflectionSecurityManager class is the default policy for RemoteReflector.
13: * Use the setSecurityPolicy method in RemoteReflector to specify a different Security Policy for Remote Reflection.
14: * By Default only classes which implement Reflect are allowed to be executed.
15: */
16: public interface RemoteReflectionSecurityPolicy {
17: public boolean isInstantiationAllowed(Class cl);
18:
19: public boolean isMethodCallAllowed(Object obj, String sMethod);
20: }
|