aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-02-27 17:00:48 +0100
committerJiri Vanek <[email protected]>2013-02-27 17:00:48 +0100
commit59a94f89ce7543d5a9788040de31d20fdf642c23 (patch)
treedc7e60f2487e02cb5c04514796da3a49b160848c /netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java
parent8f33e7d61884012e3c759b563c94f97ecdac4371 (diff)
Added backend and settings for extended applet security
Diffstat (limited to 'netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java')
-rw-r--r--netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java b/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java
index c7e3e33..98dc88b 100644
--- a/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java
+++ b/netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java
@@ -51,6 +51,7 @@ public final class DeploymentConfiguration {
public static final String DEPLOYMENT_DIR = ".icedtea";
public static final String DEPLOYMENT_CONFIG = "deployment.config";
public static final String DEPLOYMENT_PROPERTIES = "deployment.properties";
+ public static final String APPLET_TRUST_SETTINGS = ".appletTrustSettings";
public static final String DEPLOYMENT_COMMENT = "Netx deployment configuration";
@@ -105,6 +106,9 @@ public final class DeploymentConfiguration {
/** Boolean. Only show security prompts to user if true */
public static final String KEY_SECURITY_PROMPT_USER = "deployment.security.askgrantdialog.show";
+ //enum of AppletSecurityLevel in result
+ public static final String KEY_SECURITY_LEVEL = "deployment.security.level";
+
public static final String KEY_SECURITY_TRUSTED_POLICY = "deployment.security.trusted.policy";
/** Boolean. Only give AWTPermission("showWindowWithoutWarningBanner") if true */
@@ -196,6 +200,17 @@ public final class DeploymentConfiguration {
load(true);
}
+ public static File getAppletTrustUserSettingsPath() {
+ return new File(System.getProperty("user.home") + File.separator + DEPLOYMENT_DIR
+ + File.separator + APPLET_TRUST_SETTINGS);
+ }
+
+ public static File getAppletTrustGlobalSettingsPath() {
+ return new File(File.separator + "etc" + File.separator + ".java" + File.separator
+ + "deployment" + File.separator + APPLET_TRUST_SETTINGS);
+
+ }
+
/**
* Initialize this deployment configuration by reading configuration files.
* Generally, it will try to continue and ignore errors it finds (such as file not found).