String dirattrs = null;
if (ei != null) {
dirattrs = ei.getSubjectDirectoryAttributes();
}
// It is only meaningful to verify the password if we change it in some way, and if we are not autogenerating it
if (!profile.useAutoGeneratedPasswd() && StringUtils.isNotEmpty(newpassword)) {
profile.doesUserFullfillEndEntityProfile(username, userDataVO.getPassword(), dn, altName, dirattrs, userDataVO.getEmail(),
userDataVO.getCertificateProfileId(), clearpwd, (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0,
userDataVO.getTokenType(), userDataVO.getHardTokenIssuerId(), caid, ei);
} else {
profile.doesUserFullfillEndEntityProfileWithoutPassword(username, dn, altName, dirattrs, userDataVO.getEmail(),