7192896: Reason of CertPathValidatorException should be UNDETERMINED_REVOCATION_STATUS if OCSP request failed
authormullan
Tue, 28 Aug 2012 08:43:17 -0400
changeset 13596 897dea1b4c1f
parent 13588 6cbdac071165
child 13597 713cb71a14f8
7192896: Reason of CertPathValidatorException should be UNDETERMINED_REVOCATION_STATUS if OCSP request failed Reviewed-by: xuelei
jdk/src/share/classes/sun/security/provider/certpath/OCSP.java
--- 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;
+        }
     }
 }