private void InitBlock (EcmaScript.NET.ICallable callable, EcmaScript.NET.IScriptable thisObj, object [] args, SecurityController enclosingInstance)
 {
     this.callable = callable;
     this.thisObj = thisObj;
     this.args = args;
     this.enclosingInstance = enclosingInstance;
 }
        private InterpretedFunction(InterpreterData idata, object staticSecurityDomain)
        {
            this.idata = idata;

            // Always get Context from the current thread to
            // avoid security breaches via passing mangled Context instances
            // with bogus SecurityController
            Context            cx = Context.CurrentContext;
            SecurityController sc = cx.SecurityController;
            object             dynamicDomain;

            if (sc != null)
            {
                dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain);
            }
            else
            {
                if (staticSecurityDomain != null)
                {
                    throw new ArgumentException();
                }
                dynamicDomain = null;
            }

            this.securityController = sc;
            this.securityDomain     = dynamicDomain;
        }
 /// <summary> Initialize global controller that will be used for all
 /// security-related operations. The global controller takes precedence
 /// over already installed {@link Context}-specific controllers and cause
 /// any subsequent call to
 /// {@link Context#setSecurityController(SecurityController)}
 /// to throw an exception.
 /// <p>
 /// The method can only be called once.
 /// 
 /// </summary>		
 public static void initGlobal(SecurityController controller)
 {
     if (controller == null)
         throw new ArgumentException ();
     if (m_Global != null) {
         throw new System.Security.SecurityException ("Cannot overwrite already installed global SecurityController");
     }
     m_Global = controller;
 }
 /// <summary> Initialize global controller that will be used for all
 /// security-related operations. The global controller takes precedence
 /// over already installed {@link Context}-specific controllers and cause
 /// any subsequent call to
 /// {@link Context#setSecurityController(SecurityController)}
 /// to throw an exception.
 /// <p>
 /// The method can only be called once.
 ///
 /// </summary>
 public static void initGlobal(SecurityController controller)
 {
     if (controller == null)
     {
         throw new ArgumentException();
     }
     if (m_Global != null)
     {
         throw new System.Security.SecurityException("Cannot overwrite already installed global SecurityController");
     }
     m_Global = controller;
 }
        private InterpretedFunction(InterpreterData idata, object staticSecurityDomain)
        {
            this.idata = idata;

            // Always get Context from the current thread to
            // avoid security breaches via passing mangled Context instances
            // with bogus SecurityController
            Context cx = Context.CurrentContext;
            SecurityController sc = cx.SecurityController;
            object dynamicDomain;
            if (sc != null) {
                dynamicDomain = sc.getDynamicSecurityDomain (staticSecurityDomain);
            }
            else {
                if (staticSecurityDomain != null) {
                    throw new ArgumentException ();
                }
                dynamicDomain = null;
            }

            this.securityController = sc;
            this.securityDomain = dynamicDomain;
        }
 public AnonymousClassScript (EcmaScript.NET.ICallable callable, EcmaScript.NET.IScriptable thisObj, object [] args, SecurityController enclosingInstance)
 {
     InitBlock (callable, thisObj, args, enclosingInstance);
 }
 private void InitBlock(EcmaScript.NET.ICallable callable, EcmaScript.NET.IScriptable thisObj, object [] args, SecurityController enclosingInstance)
 {
     this.callable          = callable;
     this.thisObj           = thisObj;
     this.args              = args;
     this.enclosingInstance = enclosingInstance;
 }
 public AnonymousClassScript(EcmaScript.NET.ICallable callable, EcmaScript.NET.IScriptable thisObj, object [] args, SecurityController enclosingInstance)
 {
     InitBlock(callable, thisObj, args, enclosingInstance);
 }
 private InterpretedFunction(InterpretedFunction parent, int index)
 {
     this.idata = parent.idata.itsNestedFunctions [index];
     this.securityController = parent.securityController;
     this.securityDomain     = parent.securityDomain;
 }
 private InterpretedFunction(InterpretedFunction parent, int index)
 {
     this.idata = parent.idata.itsNestedFunctions [index];
     this.securityController = parent.securityController;
     this.securityDomain = parent.securityDomain;
 }