[11] RFR: JDK-8197441: Signature#initSign/initVerify for an invalid private/public key fails with ClassCastException for SunPKCS11 provider

Anthony Scarpino anthony.scarpino at oracle.com
Fri Feb 16 00:46:23 UTC 2018


On 02/15/2018 04:40 PM, Valerie Peng wrote:
> 
> Anyone can help review this trivial fix? It'll just take a minute or so.
> Essentially, the fix is to re-throw with InvalidKeyException when the 
> casting failed.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8197441
> Webrev: http://cr.openjdk.java.net/~valeriep/8197441/webrev.00/
> 
> Thanks,
> Valerie
> 
> 

I think "correct type" is better, but the word choice is up to you. 
Consider it reviewed.

Tony


More information about the security-dev mailing list