mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8320049: PKCS10 would not discard the cause when throw SignatureException on invalid key
Reviewed-by: mullan
This commit is contained in:
parent
f93b18f39c
commit
2c4c6c9ba3
1 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@
|
|||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package sun.security.pkcs10;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
@ -174,7 +173,7 @@ public class PKCS10 {
|
|||
throw new SignatureException("Invalid PKCS #10 signature");
|
||||
}
|
||||
} catch (InvalidKeyException e) {
|
||||
throw new SignatureException("Invalid key");
|
||||
throw new SignatureException("Invalid key", e);
|
||||
} catch (InvalidAlgorithmParameterException e) {
|
||||
throw new SignatureException("Invalid signature parameters", e);
|
||||
} catch (ProviderException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue