RFR : 8153531: Improve exception messaging for RSAClientKeyExchange

Seán Coffey sean.coffey at oracle.com
Tue Apr 5 18:23:22 UTC 2016

Some trivial updates to exception messages that should ease debugging 
for future issues:

webrev : http://cr.openjdk.java.net/~coffeys/webrev.8153531/webrev/

one edit I thought I'd highlight:

I've converted this exception into an SSLException to make use of the 2 
arg constructor :

> ! throw new SSLProtocolException(
> ! "Unable to process PreMasterSecret, may be too big");
I could use the initCause approach if necessary but figured that it 
didn't matter.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/security-dev/attachments/20160405/8fef122a/attachment.html>

More information about the security-dev mailing list