# HG changeset patch # User mullan # Date 1346157797 14400 # Node ID 897dea1b4c1f63c18c05ee0dcf13f75aaaeccdd6 # Parent 6cbdac071165e7beef8f58b0cd3d6a4706af32e6 7192896: Reason of CertPathValidatorException should be UNDETERMINED_REVOCATION_STATUS if OCSP request failed Reviewed-by: xuelei diff -r 6cbdac071165 -r 897dea1b4c1f 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; + } } }