if (containsPrivateKey(alias))
log.entering(this.getClass().getName(), "putPrivateKey", new Object[] { alias, key, String.valueOf(password) });  if (! containsPrivateKey(alias))
  public void putPrivateKey(String alias, Key key, char[] password)  {    if (containsPrivateKey(alias))      {        return;      }    alias = fixAlias(alias);    Properties p = new Properties();    p.put("alias", alias);    PrivateKeyEntry pke = new PrivateKeyEntry(key, new Date(), p);    PasswordEncryptedEntry enc = new PasswordEncryptedEntry(cipher, mode,                                                            keylen,                                                            new Properties());    PasswordAuthenticatedEntry auth = new PasswordAuthenticatedEntry(                                                                     mac,                                                                     maclen,                                                                     new Properties());    enc.add(pke);    auth.add(enc);    try      {        enc.encode(null, password);        auth.encode(null, password);      }    catch (IOException ioe)      {        throw new IllegalArgumentException(ioe.toString());      }    keyring.add(auth);  }