7192896: Reason of CertPathValidatorException should be UNDETERMINED_REVOCATION_STATUS if OCSP request failed
Reviewed-by: xuelei
--- a/jdk/src/share/classes/sun/security/provider/certpath/OCSP.java Fri Aug 24 11:48:51 2012 -0700
+++ b/jdk/src/share/classes/sun/security/provider/certpath/OCSP.java Tue Aug 28 08:43:17 2012 -0400
@@ -32,6 +32,7 @@
import java.net.HttpURLConnection;
import java.security.cert.CertificateException;
import java.security.cert.CertPathValidatorException;
+import java.security.cert.CertPathValidatorException.BasicReason;
import java.security.cert.CRLReason;
import java.security.cert.Extension;
import java.security.cert.X509Certificate;
@@ -337,5 +338,10 @@
private NetworkFailureException(IOException ioe) {
super(ioe);
}
+
+ @Override
+ public CertPathValidatorException.Reason getReason() {
+ return BasicReason.UNDETERMINED_REVOCATION_STATUS;
+ }
}
}