@Override
  protected void validate(KeyStore keyStore) {
    super.validate(keyStore);
    for (int i = myAdded, sz = ourAdded.size(); i < sz; ++i) {
      Pair<String, ? extends Certificate> cert = ourAdded.get(i);
      try {
        keyStore.setCertificateEntry(cert.first, cert.second);
      }
      catch (KeyStoreException e) {
        throw new IllegalStateException(e);
      }
      myAdded = i + 1;
    }
  }
@Override
  protected void validate(KeyStore keyStore)