while ((name = secprops.getProperty(pname.append(i).toString())) !=
while ((name = secprops.getProperty("security.provider." + i++)) !=
  private static void loadProviders()  {    String separator = System.getProperty("file.separator");    String secfilestr = System.getProperty("java.home") +      separator + "lib" + separator + "security" + separator +      "classpath.security";    providerCount = 0;    try      {	File secFile = new File(secfilestr);	FileInputStream fin = new FileInputStream(secFile);	secprops = new Properties();	secprops.load(fin);	int i = 1;	String name;	StringBuffer pname = new StringBuffer("security.provider.");	while ((name = secprops.getProperty(pname.append(i).toString())) !=	       null)	  {	    Exception exception = null;	    try	      {		providers.addElement(Class.forName(name).newInstance());		providerCount++;		i++;	      }	    catch (ClassNotFoundException x)	      {	        exception = x;	      }	    catch (InstantiationException x)	      {	        exception = x;	      }	    catch (IllegalAccessException x)	      {	        exception = x;	      }	    if (exception != null)	      System.err.println ("Error loading security provider " + name	                          + ": " + exception);	  }      }    catch (FileNotFoundException ignored)      {        // Actually we probibly shouldn't ignore these, once the security	// properties file is actually installed somewhere.      }    catch (IOException ignored)      {      }  }