URL updateUrl = new URL(domainUrlBase + "user/" + SERVICE_VERSION + "/" + username);
return userService.update(updateUrl, userEntry);
}
public boolean setPassword(String username, String passwd) throws AppsForYourDomainException, ServiceException, IOException {
ShaPasswordEncoder pwe = new ShaPasswordEncoder();
String passwordHashFunction = pwe.getAlgorithm();
passwd = pwe.encodePassword(passwd, null);
UserEntry entry = retrieveUser(username);
Login login = entry.getLogin();
login.setPassword(passwd);