summaryrefslogtreecommitdiff
path: root/gnu/java/security/key/KeyPairGeneratorFactory.java
diff options
context:
space:
mode:
authorRaif S. Naffah <raif@swiftdsl.com.au>2006-04-03 11:54:14 +0000
committerRaif S. Naffah <raif@swiftdsl.com.au>2006-04-03 11:54:14 +0000
commita844f2513639752086f1ff97532d39be95057d3e (patch)
tree2ea1f00c129a4076091a5173e462b83654215746 /gnu/java/security/key/KeyPairGeneratorFactory.java
parentbb4c765f470e25089f053fa7e99a7b803ed28d1d (diff)
downloadclasspath-a844f2513639752086f1ff97532d39be95057d3e.tar.gz
2006-04-03 Raif S. Naffah <raif@swiftdsl.com.au>
* 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.
Diffstat (limited to 'gnu/java/security/key/KeyPairGeneratorFactory.java')
-rw-r--r--gnu/java/security/key/KeyPairGeneratorFactory.java11
1 files changed, 5 insertions, 6 deletions
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);
}
}