public static CertPath genCertPath(int howMany,int startID){
  Certificate[] certs=new Certificate[howMany];
  for (int i=0; i < howMany; i++) {
    certs[i]=new TestCertificate(Integer.toString(startID + i));
  }
  return new TestCertPath(certs);
}

public static CertPath genCertPath ( int howMany , int startID ) { Certificate [ ] certs = new Certificate [ howMany ] ; for ( int i = 0 ; i < howMany ; i ++ ) { certs [ i ] = new TestCertificate ( Integer . toString ( startID + i ) ) ; } return new TestCertPath ( certs ) ; }
generates and returns an instance of testcertpath . < br > testcertificate - s included in the certpath will be uniq ( will have different numbers passed to their ctor - s ) . < br > the second arguments shows which number will have the first certificate in the certpath . the second certificate will have ( startid + 1 ) number and so on .
