diff options
Diffstat (limited to 'java/security/KeyFactory.java')
| -rw-r--r-- | java/security/KeyFactory.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/security/KeyFactory.java b/java/security/KeyFactory.java index 918bf3d6d..223d0d84a 100644 --- a/java/security/KeyFactory.java +++ b/java/security/KeyFactory.java @@ -41,6 +41,8 @@ import java.security.spec.KeySpec; import java.security.spec.InvalidKeySpecException; import java.security.NoSuchAlgorithmException; +import gnu.java.security.Engine; + /** * <p>Key factories are used to convert keys (opaque cryptographic keys of type * {@link Key}) into key specifications (transparent representations of the @@ -192,6 +194,10 @@ public class KeyFactory Engine.getInstance(KEY_FACTORY, algorithm, provider), provider, algorithm); } + catch (java.lang.reflect.InvocationTargetException ite) + { + throw new NoSuchAlgorithmException(algorithm); + } catch (ClassCastException cce) { throw new NoSuchAlgorithmException(algorithm); |
