From a844f2513639752086f1ff97532d39be95057d3e Mon Sep 17 00:00:00 2001 From: "Raif S. Naffah" Date: Mon, 3 Apr 2006 11:54:14 +0000 Subject: 2006-04-03 Raif S. Naffah * tools/gnu/classpath/tools/jarsigner/Main.java: Removed unused imports. (provider): Made it protected. (providerInstalled): New field. (Main): Made it a 0-arguments constructor. Removed throws clasue. (main): Removed throws clause. Call processArgs(args) after constructing instance. Call teardown() before existing. (processArgs): Added javadoc. Reduced to throws Exception. (start): Likewise. (teardown): New method. (setupCommonParams): Added javadoc. Install designated provider if not already installed. (installNewProvider): New method. (setupSigningParams): Added javadoc. Instantiate the KeyStore using type only. * tools/gnu/classpath/tools/jarsigner/JarSigner.java: Removed unused imports. (start): Reduced to throws Exception. * tools/gnu/classpath/tools/jarsigner/JarVerifier.java (start): Likewise. * tools/gnu/classpath/tools/jarsigner/HashUtils.java: Re-organized imports. * gnu/java/security/key/KeyPairGeneratorFactory.java (getInstance): Test ignoring case. (getNames): Add "dsa" as an algorithm provided by this Factory. (makeInstance): Construct IllegalArgumentException with 2 arguments. --- gnu/java/security/key/KeyPairGeneratorFactory.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gnu/java/security/key/KeyPairGeneratorFactory.java') diff --git a/gnu/java/security/key/KeyPairGeneratorFactory.java b/gnu/java/security/key/KeyPairGeneratorFactory.java index 83193fa82..8c2f348c9 100644 --- a/gnu/java/security/key/KeyPairGeneratorFactory.java +++ b/gnu/java/security/key/KeyPairGeneratorFactory.java @@ -85,7 +85,7 @@ public class KeyPairGeneratorFactory name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) - || name.equals(Registry.DSS_KPG)) + || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(); } @@ -116,6 +116,7 @@ public class KeyPairGeneratorFactory { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG); + hs.add(Registry.DSA_KPG); hs.add(Registry.RSA_KPG); hs.add(Registry.DH_KPG); hs.add(Registry.SRP_KPG); @@ -133,11 +134,9 @@ public class KeyPairGeneratorFactory } catch (Exception x) { - IllegalArgumentException iae = - new IllegalArgumentException ("strong crypto key pair generator not available: " - + clazz); - iae.initCause (x); - throw iae; + throw new IllegalArgumentException( + "strong crypto key pair generator not available: " + clazz, + x); } } -- cgit v1.2.1