else if(isRequired(PASSWORD,0)){ if(password == null || password.trim().equals("")) throw new UserDoesntFullfillEndEntityProfile("Password cannot be empty or null."); } }
    public void doesUserFullfillEndEntityProfile(String username, String password, String dn, String subjectaltname, String email,  int certificateprofileid,                                                 boolean clearpwd, boolean administrator, boolean keyrecoverable, boolean sendnotification,                                                 int tokentype, int hardwaretokenissuerid, int caid)       throws UserDoesntFullfillEndEntityProfile{      if(!isModifyable(PASSWORD,0)){        if(!password.equals(getValue(PASSWORD,0)))          throw new UserDoesntFullfillEndEntityProfile("Password didn't match requirement of it's profile.");      }      else        if(isRequired(PASSWORD,0)){          if(password == null || password.trim().equals(""))            throw new UserDoesntFullfillEndEntityProfile("Password cannot be empty or null.");        }      if(!getUse(CLEARTEXTPASSWORD,0) && clearpwd)          throw new UserDoesntFullfillEndEntityProfile("Clearpassword (used in batch proccessing) cannot be used.");      if(isRequired(CLEARTEXTPASSWORD,0)){        if(getValue(CLEARTEXTPASSWORD,0).equals(TRUE) && !clearpwd)           throw new UserDoesntFullfillEndEntityProfile("Clearpassword (used in batch proccessing) cannot be false.");        if(getValue(CLEARTEXTPASSWORD,0).equals(FALSE) && clearpwd)           throw new UserDoesntFullfillEndEntityProfile("Clearpassword (used in batch proccessing) cannot be true.");      }      doesUserFullfillEndEntityProfileWithoutPassword(username, dn, subjectaltname, email,  certificateprofileid, administrator, keyrecoverable, sendnotification, tokentype, hardwaretokenissuerid, caid);    }