lib/src/main/java/edu/berkeley/boinc/rpc/RpcClient.java
public synchronized boolean lookupAccount(AccountIn accountIn) {
		try {
			String id;
			if(accountIn.email_addr == null || accountIn.email_addr.isEmpty()) id = accountIn.user_name;
			else id = accountIn.email_addr;
			mRequest.setLength(0);
			mRequest.append("<lookup_account>\n <url>");
			mRequest.append(accountIn.url);
			mRequest.append("</url>\n <email_addr>");
			mRequest.append(id.toLowerCase(Locale.US));
			mRequest.append("</email_addr>\n <passwd_hash>");
			mRequest.append(getPasswdHash(accountIn.passwd, id.toLowerCase(Locale.US)));
			mRequest.append("</passwd_hash>\n</lookup_account>\n");
			sendRequest(mRequest.toString());
			
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		} catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in lookupAccount()", e);
			return false;
		}
	}
/**
	 * Looks up account
	 * @param accountIn - account info
	 * @return true for success, false for failure
	 */
Looks up account
@param accountIn - account info
@return true for success, false for failure
Looks up account @param accountIn - account info @return true for success false for failure
public synchronized boolean lookupAccount(AccountIn accountIn) {
		try {
			String id;
			if(accountIn.email_addr == null || accountIn.email_addr.isEmpty()) id = accountIn.user_name;
			else id = accountIn.email_addr;
			mRequest.setLength(0);
			mRequest.append("<lookup_account>\n <url>");
			mRequest.append(accountIn.url);
			mRequest.append("</url>\n <email_addr>");
			mRequest.append(id.toLowerCase(Locale.US));
			mRequest.append("</email_addr>\n <passwd_hash>");
			mRequest.append(getPasswdHash(accountIn.passwd, id.toLowerCase(Locale.US)));
			mRequest.append("</passwd_hash>\n</lookup_account>\n");
			sendRequest(mRequest.toString());
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		} catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in lookupAccount()", e);
			return false;
		}
	}
public synchronized boolean lookupAccount ( AccountIn accountIn ) { try { String id ; if ( accountIn . email_addr == null || accountIn . email_addr . isEmpty ( ) ) id = accountIn . user_name ; else id = accountIn . email_addr ; mRequest . setLength ( 0 ) ; mRequest . append ( "<lookup_account>\n <url>" ) ; mRequest . append ( accountIn . url ) ; mRequest . append ( "</url>\n <email_addr>" ) ; mRequest . append ( id . toLowerCase ( Locale . US ) ) ; mRequest . append ( "</email_addr>\n <passwd_hash>" ) ; mRequest . append ( getPasswdHash ( accountIn . passwd , id . toLowerCase ( Locale . US ) ) ) ; mRequest . append ( "</passwd_hash>\n</lookup_account>\n" ) ; sendRequest ( mRequest . toString ( ) ) ; SimpleReplyParser parser = SimpleReplyParser . parse ( receiveReply ( ) ) ; if ( parser == null ) return false ; mLastErrorMessage = parser . getErrorMessage ( ) ; return parser . result ( ) ; } catch ( IOException e ) { if ( Logging . WARNING ) Log . w ( Logging . TAG , "error in lookupAccount()" , e ) ; return false ; } }
Looks up account
 @param accountIn - account info
 @return true for success, false for failure
Looks up account @param accountIn - account info @return true for success false for failure