public void pwdAdd() throws IOException { PasswordGenerator pGenerator = new PasswordGenerator(); String sessionpass = pGenerator.pwdGenerator(); PGenModel EC = new PGenModel(); DateFetch dFetch = new DateFetch(); EC.addPassword(sessionpass, dFetch.DateFetch()); setPassword(sessionpass); // testdata = sessionpass; EC.CloseConnection(); }
/*Use this to delete an Password from the Password table of the Password database*/ public void pwdDel(int pwdID) { PGenModel EC = new PGenModel(); EC.deletePassword(pwdID); EC.CloseConnection(); }
/*This is how one would list the contents of the Password table of the Password database*/ public void pwdList() { PGenModel EC = new PGenModel(); EC.listPasswords(); EC.CloseConnection(); }