* @param password The clear text or encrypted password
* @param encrypted If true, the supplied password is already hashed
* @param logoutUser If true, logout the user after updating the password
*/
public void update(String password, boolean encrypted, boolean logoutUser) {
PasswordUpdateParam param = new PasswordUpdateParam();
if (encrypted) {
param.setEncPassword(password);
}
else {
param.setPassword(password);
}
client.putURI(String.class, param, client.uriBuilder(PASSWORD_URL).queryParam("logout_user", logoutUser).build());
}