/hg/icedtea-web: Extracted hardcoded strings from AttributesChecker
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Mar 26 17:50:42 UTC 2014
changeset 01a37b9ad8cb in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=01a37b9ad8cb
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Mar 26 18:50:35 2014 +0100
Extracted hardcoded strings from AttributesChecker
diffstat:
ChangeLog | 9 ++++++++-
netx/net/sourceforge/jnlp/resources/Messages.properties | 3 +++
netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java | 6 +++---
3 files changed, 14 insertions(+), 4 deletions(-)
diffs (47 lines):
diff -r 9de6713da051 -r 01a37b9ad8cb ChangeLog
--- a/ChangeLog Wed Mar 26 18:46:13 2014 +0100
+++ b/ChangeLog Wed Mar 26 18:50:35 2014 +0100
@@ -1,4 +1,11 @@
-2014-03-24 Jiri Vanek <jvanek at redhat.com>
+2014-03-26 Jiri Vanek <jvanek at redhat.com>
+
+ * netx/net/sourceforge/jnlp/resources/Messages.propertie: new keys (STOAsignedMsgFully)
+ (STOAsignedMsgAndSandbox) (STOAsignedMsgPartiall) added
+ * netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java: extracted
+ hardocded values of (signedMsg)
+
+2014-03-26 Jiri Vanek <jvanek at redhat.com>
Added possibility to group permissions in PolicyEditor
* netx/net/sourceforge/jnlp/resources/Messages.properties: added groups names
diff -r 9de6713da051 -r 01a37b9ad8cb netx/net/sourceforge/jnlp/resources/Messages.properties
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties Wed Mar 26 18:46:13 2014 +0100
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties Wed Mar 26 18:50:35 2014 +0100
@@ -302,6 +302,9 @@
SJNLPFileIsNotSigned=This application contains a digital signature in which the launching JNLP file is not signed.
SAppletTitle=Applet title: {0}
STrustedOnlyAttributeFailure=This application specifies Trusted-only as True in its Manifest. {0} and requests permission level: {1}. This is not allowed.
+STOAsignedMsgFully = The applet is fully signed
+STOAsignedMsgAndSandbox = The applet is fully signed and sandboxed
+STOAsignedMsgPartiall = The applet is not fully signed
# Security - used for the More Information dialog
SBadKeyUsage=Resources contain entries whose signer certificate's KeyUsage extension doesn't allow code signing.
diff -r 9de6713da051 -r 01a37b9ad8cb netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java
--- a/netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java Wed Mar 26 18:46:13 2014 +0100
+++ b/netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java Wed Mar 26 18:50:35 2014 +0100
@@ -115,11 +115,11 @@
|| (isSandboxed && SecurityDesc.SANDBOX_PERMISSIONS.equals(desc));
final String signedMsg;
if (isFullySigned && !isSandboxed) {
- signedMsg = "The applet is fully signed";
+ signedMsg = Translator.R("STOAsignedMsgFully");
} else if (isFullySigned && isSandboxed) {
- signedMsg = "The applet is fully signed and sandboxed";
+ signedMsg = Translator.R("STOAsignedMsgAndSandbox");
} else {
- signedMsg = "The applet is not fully signed";
+ signedMsg = Translator.R("STOAsignedMsgPartiall");
}
OutputController.getLogger().log(OutputController.Level.MESSAGE_DEBUG,
"Trusted Only manifest attribute is \"true\". " + signedMsg + " and requests permission level: " + securityType);
More information about the distro-pkg-dev
mailing list