if (!loaded) { throw new IllegalStateException ("not loaded"); } if (keyring == null) { return null; } if (!(keyring instanceof IPrivateKeyring)) { throw new IllegalStateException("not a private keyring"); } return ((IPrivateKeyring) keyring).getCertPath(alias);
log.entering(this.getClass().getName(), "engineGetCertificateChain", alias);  ensureLoaded(); Certificate[] result = privateKR.getCertPath(alias);  log.exiting(this.getClass().getName(), "engineGetCertificateChain", result); return result;
  public Certificate[] engineGetCertificateChain(String alias)  {    if (!loaded)      {        throw new IllegalStateException ("not loaded");      }    if (keyring == null)      {        return null;      }    if (!(keyring instanceof IPrivateKeyring))      {        throw new IllegalStateException("not a private keyring");      }    return ((IPrivateKeyring) keyring).getCertPath(alias);  }