diff options
Diffstat (limited to 'java/security/AlgorithmParameterGenerator.java')
-rw-r--r-- | java/security/AlgorithmParameterGenerator.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/security/AlgorithmParameterGenerator.java b/java/security/AlgorithmParameterGenerator.java index b8ad8e27d..26a7790d3 100644 --- a/java/security/AlgorithmParameterGenerator.java +++ b/java/security/AlgorithmParameterGenerator.java @@ -39,6 +39,8 @@ package java.security; import java.security.spec.AlgorithmParameterSpec; +import gnu.java.security.Engine; + /** * <p>The <code>AlgorithmParameterGenerator</code> class is used to generate a * set of parameters to be used with a certain algorithm. Parameter generators @@ -201,7 +203,11 @@ public class AlgorithmParameterGenerator (AlgorithmParameterGeneratorSpi) Engine.getInstance( ALGORITHM_PARAMETER_GENERATOR, algorithm, provider), provider, algorithm); - } + } + catch (java.lang.reflect.InvocationTargetException ite) + { + throw new NoSuchAlgorithmException(algorithm); + } catch (ClassCastException cce) { throw new NoSuchAlgorithmException(algorithm); |