addition clarity to exception messages
@@ -458,11 +458,11 @@ private boolean validatedOcspResponse(BasicOCSPResponse basicResp, byte[] nonce)
}
catch (GeneralSecurityException e)
{
- throw new CertPathValidatorException(e.getMessage(), e, parameters.getCertPath(), parameters.getIndex());
+ throw new CertPathValidatorException("OCSP response failure: " + e.getMessage(), e, parameters.getCertPath(), parameters.getIndex());
}
catch (IOException e)
{
- throw new CertPathValidatorException(e.getMessage(), e, parameters.getCertPath(), parameters.getIndex());
+ throw new CertPathValidatorException("OCSP response failure: " + e.getMessage(), e, parameters.getCertPath(), parameters.getIndex());
}
}
private org.bouncycastle.asn1.x509.Certificate extractCert()
