Package org.mozilla.javascript
Class SecureCaller
- java.lang.Object
-
- org.mozilla.javascript.SecureCaller
-
public abstract class SecureCaller extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SecureCaller.SecureClassLoaderImpl
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.security.CodeSource,java.util.Map<java.lang.ClassLoader,java.lang.ref.SoftReference<SecureCaller>>>
callers
private static byte[]
secureCallerImplBytecode
-
Constructor Summary
Constructors Constructor Description SecureCaller()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Object
call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
(package private) static java.lang.Object
callSecurely(java.security.CodeSource codeSource, Callable callable, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
Call the specified callable using a protection domain belonging to the specified code source.private static byte[]
loadBytecode()
private static byte[]
loadBytecodePrivileged()
-
-
-
Field Detail
-
secureCallerImplBytecode
private static final byte[] secureCallerImplBytecode
-
callers
private static final java.util.Map<java.security.CodeSource,java.util.Map<java.lang.ClassLoader,java.lang.ref.SoftReference<SecureCaller>>> callers
-
-
Method Detail
-
call
public abstract java.lang.Object call(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
-
callSecurely
static java.lang.Object callSecurely(java.security.CodeSource codeSource, Callable callable, Context cx, Scriptable scope, Scriptable thisObj, java.lang.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()
-
-