public PublicKey loadPublicKey(int id) throws Exception {
  if (defaultKeys) {
    return getPublicKeyFromString(RSAKeyLoader.DEFAULT_UKEY);
  }
  FileReader f=new FileReader(path + "publickey" + id);
  BufferedReader r=new BufferedReader(f);
  String tmp="";
  String key="";
  while ((tmp=r.readLine()) != null) {
    key=key + tmp;
  }
  f.close();
  r.close();
  PublicKey ret=getPublicKeyFromString(key);
  return ret;
}

public PublicKey loadPublicKey ( int id ) throws Exception { if ( defaultKeys ) { return getPublicKeyFromString ( RSAKeyLoader . DEFAULT_UKEY ) ; } FileReader f = new FileReader ( path + "publickey" + id ) ; BufferedReader r = new BufferedReader ( f ) ; String tmp = "" ; String key = "" ; while ( ( tmp = r . readLine ( ) ) != null ) { key = key + tmp ; } f . close ( ) ; r . close ( ) ; PublicKey ret = getPublicKeyFromString ( key ) ; return ret ; }
loads the public key of some processes from configuration files
