a. has function for user to select which kind of password they want to validate or generate.
b. password requirement kind:
- enter how long your password is, minimum and maximum value
- enter whether your password need number, character, uppercase letter, or special character.
c. save the generated password to the file.
- choose to save or not.
- choose which file directory you want to save.
- enter the file name you want to save.
a. start user interface
- start menu
- please enter generator or validator
- if validator should enter user's password
- switch select request interface
b. request interface
- enter the minimum and maximum length of your password
- choose your password need number, character, uppercase letter, or special character. yes or not
- if generator show the created password, if validator show the password is meet the requests or not
- ask user want to save the password or not, if yes switch to save interface, else switch to main frame or exit
c. save password interface
- open file manager, let user select which file directory he want to save. or let user enter the file directory.
- let user enter file name.
- exit or return to main frame.
a. main frame
just print welcome and let user choose
go to generator method
go to validator method with password
b. request frame
show the request for user to select
generator set password null then modify its request attributes. then generate it and switch to file frame.
validator set password to what user enter then modify its request attributes.then validate it and switch to file frame.
password class
frame method
validate and generate method
save file method