src/share/classes/com/sun/crypto/provider/DHKeyFactory.java
Print this page
7196805: DH Key interoperability testing between SunJCE and JsafeJCE not successful
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -81,11 +81,11 @@
throw new InvalidKeySpecException
("Inappropriate key specification");
}
} catch (InvalidKeyException e) {
throw new InvalidKeySpecException
- ("Inappropriate key specification");
+ ("Inappropriate key specification", e);
}
}
/**
* Generates a private key object from the provided key specification
@@ -116,11 +116,11 @@
throw new InvalidKeySpecException
("Inappropriate key specification");
}
} catch (InvalidKeyException e) {
throw new InvalidKeySpecException
- ("Inappropriate key specification");
+ ("Inappropriate key specification", e);
}
}
/**
* Returns a specification (key material) of the given key object
@@ -225,9 +225,9 @@
} else {
throw new InvalidKeyException("Wrong algorithm type");
}
} catch (InvalidKeySpecException e) {
- throw new InvalidKeyException("Cannot translate key");
+ throw new InvalidKeyException("Cannot translate key", e);
}
}
}