Class SecureCaller
java.lang.Object
org.mozilla.javascript.SecureCaller
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<CodeSource, Map<ClassLoader, SoftReference<SecureCaller>>> private static final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
call
(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) (package private) static Object
callSecurely
(CodeSource codeSource, Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Call the specified callable using a protection domain belonging to the specified code source.private static byte[]
private static byte[]
-
Field Details
-
secureCallerImplBytecode
private static final byte[] secureCallerImplBytecode -
callers
-
-
Constructor Details
-
SecureCaller
public SecureCaller()
-
-
Method Details
-
call
public abstract Object call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) -
callSecurely
static Object callSecurely(CodeSource codeSource, Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Call the specified callable using a protection domain belonging to the specified code source. -
loadBytecode
private static byte[] loadBytecode() -
loadBytecodePrivileged
private static byte[] loadBytecodePrivileged()
-