Consistent exception type
@@ -210,7 +210,7 @@ protected DHPublicKeyParameters getPubKeyDH() throws IOException
{
return (DHPublicKeyParameters)getPublicKey();
}
- catch (RuntimeException e)
+ catch (ClassCastException e)
{
throw new TlsFatalAlert(AlertDescription.certificate_unknown, e);
}
