Class SecurityUtilities
java.lang.Object
org.mozilla.javascript.SecurityUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtectionDomain
getProtectionDomain
(Class<?> clazz) static ProtectionDomain
Look up the top-most element in the current stack representing a script and return its protection domain.static String
getSystemProperty
(String name) Retrieves a system property within a privileged block.
-
Constructor Details
-
SecurityUtilities
public SecurityUtilities()
-
-
Method Details
-
getSystemProperty
-
getProtectionDomain
-
getScriptProtectionDomain
Look up the top-most element in the current stack representing a script and return its protection domain. This relies on the system-wide SecurityManager being an instance ofRhinoSecurityManager
, otherwise it returnsnull
.- Returns:
- The protection of the top-most script in the current stack, or null
-