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

Valerie Peng valerie.peng at oracle.com
Fri Feb 16 02:11:10 UTC 2018


Sure, I'll change it to "correct type".
Thanks,
Valerie

On 2/15/2018 4:46 PM, Anthony Scarpino wrote:
> 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