jdk/src/java.base/share/classes/sun/security/provider/certpath/RevocationChecker.java
changeset 44479 9669aa3c7bcb
parent 43701 fe8c324ba97c
equal deleted inserted replaced
44478:ed8774740d18 44479:9669aa3c7bcb
   984         builderParams.setAnyPolicyInhibited(params.anyPolicyInhibited());
   984         builderParams.setAnyPolicyInhibited(params.anyPolicyInhibited());
   985         // Policy qualifiers must be rejected, since we don't have
   985         // Policy qualifiers must be rejected, since we don't have
   986         // any way to convey them back to the application.
   986         // any way to convey them back to the application.
   987         // That's the default, so no need to write code.
   987         // That's the default, so no need to write code.
   988         builderParams.setDate(params.date());
   988         builderParams.setDate(params.date());
   989         // CertPathCheckers need to be cloned to start from fresh state
   989         builderParams.setCertPathCheckers(params.certPathCheckers());
   990         builderParams.setCertPathCheckers(
       
   991             params.getPKIXParameters().getCertPathCheckers());
       
   992         builderParams.setSigProvider(params.sigProvider());
   990         builderParams.setSigProvider(params.sigProvider());
   993 
   991 
   994         // Skip revocation during this build to detect circular
   992         // Skip revocation during this build to detect circular
   995         // references. But check revocation afterwards, using the
   993         // references. But check revocation afterwards, using the
   996         // key (or any other that works).
   994         // key (or any other that works).
  1114                      -1, BasicReason.UNDETERMINED_REVOCATION_STATUS);
  1112                      -1, BasicReason.UNDETERMINED_REVOCATION_STATUS);
  1115             }
  1113             }
  1116         }
  1114         }
  1117     }
  1115     }
  1118 
  1116 
  1119     @Override
       
  1120     public RevocationChecker clone() {
       
  1121         RevocationChecker copy = (RevocationChecker)super.clone();
       
  1122         // we don't deep-copy the exceptions, but that is ok because they
       
  1123         // are never modified after they are instantiated
       
  1124         copy.softFailExceptions = new LinkedList<>(softFailExceptions);
       
  1125         return copy;
       
  1126     }
       
  1127 
       
  1128     /*
  1117     /*
  1129      * This inner class extends the X509CertSelector to add an additional
  1118      * This inner class extends the X509CertSelector to add an additional
  1130      * check to make sure the subject public key isn't on a particular list.
  1119      * check to make sure the subject public key isn't on a particular list.
  1131      * This class is used by buildToNewKey() to make sure the builder doesn't
  1120      * This class is used by buildToNewKey() to make sure the builder doesn't
  1132      * end up with a CertPath to a public key that has already been rejected.
  1121      * end up with a CertPath to a public key that has already been rejected.