diff options
Diffstat (limited to 'java/security/AlgorithmParameters.java')
| -rw-r--r-- | java/security/AlgorithmParameters.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/security/AlgorithmParameters.java b/java/security/AlgorithmParameters.java index a7212772b..07d76bb7b 100644 --- a/java/security/AlgorithmParameters.java +++ b/java/security/AlgorithmParameters.java @@ -41,6 +41,8 @@ import java.security.spec.InvalidParameterSpecException; import java.security.spec.AlgorithmParameterSpec; import java.io.IOException; +import gnu.java.security.Engine; + /** * <p>This class is used as an opaque representation of cryptographic * parameters.</p> @@ -204,6 +206,10 @@ public class AlgorithmParameters Engine.getInstance(ALGORITHM_PARAMETERS, algorithm, provider), provider, algorithm); } + catch (java.lang.reflect.InvocationTargetException ite) + { + throw new NoSuchAlgorithmException(algorithm); + } catch (ClassCastException cce) { throw new NoSuchAlgorithmException(algorithm); |
