org.mozilla.javascript

Class SecurityUtilities


public class SecurityUtilities
extends java.lang.Object

Author:
Attila Szegedi

Method Summary

static ProtectionDomain
getProtectionDomain(Class clazz)
static String
getSystemProperty(String name)
Retrieves a system property within a privileged block.

Method Details

getProtectionDomain

public static ProtectionDomain getProtectionDomain(Class clazz)

getSystemProperty

public static String getSystemProperty(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