finddate.setTime(finddate.getTime() + (long)millis);
finddate.setTime(finddate.getTime() + millis);
    public UserView[] filterByExpiringCertificates(String days, int index, int size) throws RemoteException,                                                                                            FinderException,                                                                                            NumberFormatException,                                                                                            NamingException,                                                                                            CreateException{      ArrayList userlist = new ArrayList();      UserView[] returnval = null;      long d = Long.parseLong(days);      Date finddate = new Date();      long millis = (d * 86400000); // One day in milliseconds.      finddate.setTime(finddate.getTime() + (long)millis);      Collection usernames =certificatesession.findCertificatesByExpireTimeWithLimit(administrator, finddate);      if(!usernames.isEmpty()){        Iterator i = usernames.iterator();        while(i.hasNext() && userlist.size() <= MAXIMUM_QUERY_ROWCOUNT +1 ){           UserDataVO user = null;           try{             user = adminsession.findUser(administrator, (String) i.next());             if(user != null)               userlist.add(user);           }catch(AuthorizationDeniedException e){}        }        users.setUsers(userlist, informationmemory.getCAIdToNameMap());        returnval= users.getUsers(index,size);      }      return returnval;    }