-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
61 lines (51 loc) · 1.45 KB
/
Main.java
File metadata and controls
61 lines (51 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
public class Main {
public static void main(String[] args) {
System.out.println("Start"); // beginning of program
boolean endLogin = false; //
boolean setupStatus = false; // flips to true when setup has been done and user has password
PWGUI pwgui = new PWGUI();
PWVerify pwverify = new PWVerify();
setupStatus = pwverify.readSetupComplete();
pwgui.window();
// while (pwgui.getPasswordSet() == false) {
// try {
// Thread.sleep(100);
// } catch (InterruptedException e) {
// System.out.println("got interrupted!");
// }
//
// if (setupStatus == false) {
// pwgui.runSetPassword();
// } else {
// pwgui.runLogin();
// }
// }
// pwgui.runLogin();
// create larger loop for going between GUI's
// while (endLogin == false) {
// try {
// Thread.sleep(100);
// } catch (InterruptedException e) {
// System.out.println("got interrupted!");
// }
// if (pwgui.getEnterPW() == true) {
// // evaluate hash of new password
// if (pwverify.verifyPW(pwgui.hash(pwgui.getPW())) == true) {
// endLogin = true;
// }
// }
// if (pwgui.getChangePW() == true) {
// pwgui.runResetPassword(); // go to change password GUI
// endLogin = true;
// }
// }
// System.out.println("Password: " + pwgui.getPW());
}
}
/*
* SOURCES:
*
* https://stackoverflow.com/questions/2663419/sleep-from-main-thread-is-
* throwing-interruptedexception
* https://www.quora.com/How-do-I-use-method-from-another-Java-class
*/