if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { keyring = new GnuPublicKeyring("HMAC-SHA-1", 20); } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } ((IPublicKeyring) keyring).putCertificate(alias, cert);
log.entering(this.getClass().getName(), "engineSetCertificateEntry", new Object[] { alias, cert });  ensureLoaded(); publicKR.putCertificate(alias, cert);  log.exiting(this.getClass().getName(), "engineSetCertificateEntry");
  public void engineSetCertificateEntry(String alias, Certificate cert)  {    if (!loaded)      {        throw new IllegalStateException ("not loaded");      }    if (keyring == null)      {        keyring = new GnuPublicKeyring("HMAC-SHA-1", 20);      }    if (!(keyring instanceof IPublicKeyring))      {        throw new IllegalStateException("not a public keyring");      }    ((IPublicKeyring) keyring).putCertificate(alias, cert);  }