changeset 5760:8b90182f2b33

7192896: Reason of CertPathValidatorException should be UNDETERMINED_REVOCATION_STATUS if OCSP request failed Reviewed-by: xuelei
author mullan
date Tue, 28 Aug 2012 08:43:17 -0400
parents bd91a601265c
children ca7f914b5fea
files src/share/classes/sun/security/provider/certpath/OCSP.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/OCSP.java	Fri Aug 24 11:48:51 2012 -0700
+++ b/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;
+        }
     }
 }