public boolean checkPassword(String attempt) { String encoded = Utils.getMD5(attempt); return (encoded.equals(metadata.get(EPersonMetadataField.PASSWORD))); }
public void setPassword(String password) { metadata.put(EPersonMetadataField.PASSWORD, Utils.getMD5(password)); modified = true; }