public void addCertificate(java.security.Certificate certificate)
public void addCertificate(Certificate certificate)
  public void addCertificate(java.security.Certificate certificate)    throws KeyManagementException  {    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkSecurityAccess("addIdentityCertificate");    //Check public key of this certificate against the first one     //in the vector    if (certificates.size() > 0)      {	if (((Certificate) certificates.firstElement()).getPublicKey() !=	    publicKey)	  throw new KeyManagementException("Public key does not match");      }    certificates.addElement(certificate);  }