if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPublicKeyring)) { throw new IllegalStateException("not a public keyring"); } return ((IPublicKeyring) keyring).getCertificate(alias);
log.entering(this.getClass().getName(), "engineGetCertificate", alias);  ensureLoaded(); Certificate result = publicKR.getCertificate(alias);  log.exiting(this.getClass().getName(), "engineGetCertificate", result); return result;
  public Certificate engineGetCertificate(String alias)  {    if (!loaded)      {        throw new IllegalStateException ("not loaded");      }    if (keyring == null)      {        return null;      }    if (!(keyring instanceof IPublicKeyring))      {        throw new IllegalStateException("not a public keyring");      }    return ((IPublicKeyring) keyring).getCertificate(alias);  }