code: public final void setCertificateEntry(String alias, Certificate cert)
          throws KeyStoreException
      {
          if (!initialized) {
              throw new KeyStoreException("Uninitialized keystore");
          }
          keyStoreSpi.engineSetCertificateEntry(alias, cert);
      }
docs: Assigns the given trusted certificate to the given alias.
  
  <p> If the given alias identifies an existing entry
  created by a call to <code>setCertificateEntry</code>,
  or created by a call to <code>setEntry</code> with a
  <code>TrustedCertificateEntry</code>,
  the trusted certificate in the existing entry
  is overridden by the given certificate.
  
  @param alias the alias name
  @param cert the certificate
  
  @exception KeyStoreException if the keystore has not been initialized,
  or the given alias already exists and does not identify an
  entry containing a trusted certificate,
  or this operation fails for some other reason.