changeset in /hg/icedtea6: 2008-05-06 Joshua Sumali <jsumali at r...

Joshua Sumali jsumali at redhat.com
Tue May 6 10:11:28 PDT 2008


changeset 506ca3ba0559 in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=506ca3ba0559
description:
	2008-05-06  Joshua Sumali  <jsumali at redhat.com>

	        * rt/net/sourceforge/jnlp/security/CertWarningPane.java: Get publisher
	        name from certificate instead of vendor field in jnlp file.

diffstat:

2 files changed, 10 insertions(+), 10 deletions(-)
ChangeLog                                             |    5 +++++
rt/net/sourceforge/jnlp/security/CertWarningPane.java |   15 +++++----------

diffs (38 lines):

diff -r dce24bd81691 -r 506ca3ba0559 ChangeLog
--- a/ChangeLog	Mon May 05 10:06:01 2008 -0400
+++ b/ChangeLog	Tue May 06 13:11:19 2008 -0400
@@ -1,3 +1,8 @@ 2008-05-05  Lillian Angel  <langel at redha
+2008-05-06  Joshua Sumali  <jsumali at redhat.com>
+
+	* rt/net/sourceforge/jnlp/security/CertWarningPane.java: Get publisher
+	name from certificate instead of vendor field in jnlp file.
+
 2008-05-05  Lillian Angel  <langel at redhat.com>
 
 	* jconsole.desktop: Fixed typo.
diff -r dce24bd81691 -r 506ca3ba0559 rt/net/sourceforge/jnlp/security/CertWarningPane.java
--- a/rt/net/sourceforge/jnlp/security/CertWarningPane.java	Mon May 05 10:06:01 2008 -0400
+++ b/rt/net/sourceforge/jnlp/security/CertWarningPane.java	Tue May 06 13:11:19 2008 -0400
@@ -91,17 +91,12 @@ public class CertWarningPane extends Sec
 		}
 
 		try {
-			//Really ugly way of getting the publisher...
-			if (file instanceof PluginBridge) {
-				Certificate c = ((SecurityWarningDialog)optionPane)
-					.getJarSigner().getPublisher();
-				if (c instanceof X509Certificate) {
-					publisher = getCN(((X509Certificate)c)
-						.getSubjectX500Principal().getName());
-				}
+			Certificate c = ((SecurityWarningDialog)optionPane)
+				.getJarSigner().getPublisher();
+			if (c instanceof X509Certificate) {
+				publisher = getCN(((X509Certificate)c)
+					.getSubjectX500Principal().getName());
 			}
-			else
-				publisher = file.getInformation().getVendor();
 		} catch (Exception e) {
 		}
 



More information about the distro-pkg-dev mailing list