user_add_st.setString(3, Algorithms.hexDigest("", password, "MD5"));
user_add_st.executeUpdate();
}
} catch (NoSuchAlgorithmException e) {
throw
new TigaseDBException("Password encoding algorithm is not supported.",
e);
} catch (SQLException e) {
throw new UserExistsException("Error while adding user to repository, user exists?", e);
}
}