c = keyCerts.elements(); k = keyCerts.keys();  while (c.hasMoreElements()) { Certificate tc = (Certificate)c.nextElement(); String      ta = (String)k.nextElement();  if (tc.equals(cert)) { return ta; } }
    public String engineGetCertificateAlias(        Certificate cert)     {        Enumeration c = certs.elements();        Enumeration k = certs.keys();        while (c.hasMoreElements())        {            Certificate tc = (Certificate)c.nextElement();            String      ta = (String)k.nextElement();            if (tc.equals(cert))            {                return ta;            }        }        return null;    }