setStatus(UserDataLocal.STATUS_NEW);
setStatus(UserDataConstants.STATUS_NEW);
    public UserDataPK ejbCreate(String username, String password, String dn, int caid)            throws CreateException, NoSuchAlgorithmException {        long time = (new Date()).getTime();        setUsername(StringTools.strip(username));        setClearPassword(null);        setPasswordHash(makePasswordHash(password));        setSubjectDN(CertTools.stringToBCDNString(dn));        setCaId(caid);        setSubjectAltName(null);        setSubjectEmail(null);        setStatus(UserDataLocal.STATUS_NEW);        setType(SecConst.USER_INVALID);        setTimeCreated(time);        setTimeModified(time);        setEndEntityProfileId(0);        setCertificateProfileId(0);        setTokenType(SecConst.TOKEN_SOFT_BROWSERGEN);        setHardTokenIssuerId(0);        setExtendedInformationData(null);        UserDataPK pk = new UserDataPK(username);        log.debug("Created user " + username);        return pk;    }