Package org.apache.batik.script.rhino
Class BatikSecurityController
- java.lang.Object
-
- org.mozilla.javascript.SecurityController
-
- org.apache.batik.script.rhino.BatikSecurityController
-
public class BatikSecurityController extends org.mozilla.javascript.SecurityControllerThis implementation of the RhinoSecurityControllerinterface is meant for use within the context of Batik only. It is a partial implementation of the interface that does what is needed by Batik and no more.- Version:
- $Id: BatikSecurityController.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Constructor Summary
Constructors Constructor Description BatikSecurityController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcallWithDomain(java.lang.Object securityDomain, org.mozilla.javascript.Context cx, org.mozilla.javascript.Callable callable, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)CallsCallable.call(Context, Scriptable, Scriptable, Object[])ofcallableunder restricted security domain where an action is allowed only if it is allowed according to the Java stack on the moment of thecallWithDomaincall andsecurityDomain.org.mozilla.javascript.GeneratedClassLoadercreateClassLoader(java.lang.ClassLoader parentLoader, java.lang.Object securityDomain)Default constructorjava.lang.ObjectgetDynamicSecurityDomain(java.lang.Object securityDomain)Get dynamic security domain that allows an action only if it is allowed by the current Java stack and securityDomain.
-
-
-
Method Detail
-
createClassLoader
public org.mozilla.javascript.GeneratedClassLoader createClassLoader(java.lang.ClassLoader parentLoader, java.lang.Object securityDomain)Default constructor- Specified by:
createClassLoaderin classorg.mozilla.javascript.SecurityController
-
getDynamicSecurityDomain
public java.lang.Object getDynamicSecurityDomain(java.lang.Object securityDomain)
Get dynamic security domain that allows an action only if it is allowed by the current Java stack and securityDomain. If securityDomain is null, return domain representing permissions allowed by the current stack.- Specified by:
getDynamicSecurityDomainin classorg.mozilla.javascript.SecurityController
-
callWithDomain
public java.lang.Object callWithDomain(java.lang.Object securityDomain, org.mozilla.javascript.Context cx, org.mozilla.javascript.Callable callable, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args)CallsCallable.call(Context, Scriptable, Scriptable, Object[])ofcallableunder restricted security domain where an action is allowed only if it is allowed according to the Java stack on the moment of thecallWithDomaincall andsecurityDomain. Any call togetDynamicSecurityDomain(Object)during execution ofCallable.call(Context, Scriptable, Scriptable, Object[])should return a domain incorporate restrictions imposed bysecurityDomain.- Overrides:
callWithDomainin classorg.mozilla.javascript.SecurityController
-
-