jdk/src/share/classes/sun/security/provider/certpath/OCSPResponse.java
changeset 19820 9ee1d7810f50
parent 19045 bc9a25fff6c5
child 21819 8cd757e836d8
equal deleted inserted replaced
19606:6c846d61ba2f 19820:9ee1d7810f50
   383         throws CertPathValidatorException
   383         throws CertPathValidatorException
   384     {
   384     {
   385         switch (responseStatus) {
   385         switch (responseStatus) {
   386             case SUCCESSFUL:
   386             case SUCCESSFUL:
   387                 break;
   387                 break;
   388             case UNAUTHORIZED:
       
   389             case TRY_LATER:
   388             case TRY_LATER:
   390             case INTERNAL_ERROR:
   389             case INTERNAL_ERROR:
   391                 throw new CertPathValidatorException(
   390                 throw new CertPathValidatorException(
   392                     "OCSP response error: " + responseStatus, null, null, -1,
   391                     "OCSP response error: " + responseStatus, null, null, -1,
   393                     BasicReason.UNDETERMINED_REVOCATION_STATUS);
   392                     BasicReason.UNDETERMINED_REVOCATION_STATUS);
       
   393             case UNAUTHORIZED:
   394             default:
   394             default:
   395                 throw new CertPathValidatorException("OCSP response error: " +
   395                 throw new CertPathValidatorException("OCSP response error: " +
   396                                                      responseStatus);
   396                                                      responseStatus);
   397         }
   397         }
   398 
   398