log.trace(">changeUserData()");
addedusermemory.changeUser(userdata);
if(userdata.getPassword() != null && userdata.getPassword().trim().equals("")) {
userdata.setPassword(null);
}
UserDataVO uservo = new UserDataVO(userdata.getUsername(), userdata.getSubjectDN(), userdata.getCAId(), userdata.getSubjectAltName(),
userdata.getEmail(), userdata.getStatus(), userdata.getType(), userdata.getEndEntityProfileId(), userdata.getCertificateProfileId(),
null,null, userdata.getTokenType(), userdata.getHardTokenIssuerId(), null);
uservo.setPassword(userdata.getPassword());
uservo.setExtendedinformation(userdata.getExtendedInformation());
uservo.setCardNumber(userdata.getCardNumber());
userAdminSession.changeUser(administrator, uservo, userdata.getClearTextPassword());
log.trace("<changeUserData()");
}