Class BatikSecurityController


  • public class BatikSecurityController
    extends org.mozilla.javascript.SecurityController
    This implementation of the Rhino SecurityController interface 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)
      Calls Callable.call(Context, Scriptable, Scriptable, Object[]) of callable under restricted security domain where an action is allowed only if it is allowed according to the Java stack on the moment of the callWithDomain call and securityDomain.
      org.mozilla.javascript.GeneratedClassLoader createClassLoader​(java.lang.ClassLoader parentLoader, java.lang.Object securityDomain)
      Default constructor
      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.
      • Methods inherited from class org.mozilla.javascript.SecurityController

        createLoader, execWithDomain, getStaticSecurityDomainClass, getStaticSecurityDomainClassInternal, hasGlobal, initGlobal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatikSecurityController

        public BatikSecurityController()
    • Method Detail

      • createClassLoader

        public org.mozilla.javascript.GeneratedClassLoader createClassLoader​(java.lang.ClassLoader parentLoader,
                                                                             java.lang.Object securityDomain)
        Default constructor
        Specified by:
        createClassLoader in class org.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:
        getDynamicSecurityDomain in class org.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)
        Calls Callable.call(Context, Scriptable, Scriptable, Object[]) of callable under restricted security domain where an action is allowed only if it is allowed according to the Java stack on the moment of the callWithDomain call and securityDomain. Any call to getDynamicSecurityDomain(Object) during execution of Callable.call(Context, Scriptable, Scriptable, Object[]) should return a domain incorporate restrictions imposed by securityDomain.
        Overrides:
        callWithDomain in class org.mozilla.javascript.SecurityController