org.mozilla.javascript
Class SecurityUtilities

java.lang.Object
  extended by org.mozilla.javascript.SecurityUtilities

public class SecurityUtilities
extends java.lang.Object

Author:
Attila Szegedi

Constructor Summary
SecurityUtilities()
           
 
Method Summary
static java.security.ProtectionDomain getProtectionDomain(java.lang.Class clazz)
           
static java.lang.String getSystemProperty(java.lang.String name)
          Retrieves a system property within a privileged block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtilities

public SecurityUtilities()
Method Detail

getSystemProperty

public static java.lang.String getSystemProperty(java.lang.String name)
Retrieves a system property within a privileged block. Use it only when the property is used from within Rhino code and is not passed out of it.

Parameters:
name - the name of the system property
Returns:
the value of the system property

getProtectionDomain

public static java.security.ProtectionDomain getProtectionDomain(java.lang.Class clazz)