Certificate certs[] = new Certificate[certificates.size()];
Certificate[] certs = new Certificate[certificates.size()];
  public Certificate[] certificates()  {    Certificate certs[] = new Certificate[certificates.size()];    int max = certificates.size();    for (int i = 0; i < max; i++)      certs[i] = (Certificate) certificates.elementAt(i);    return certs;  }