Need help with JAVA programming assignment

Anonymous
timer Asked: Apr 20th, 2017

Question description

For security-minded professionals, it is important that only the appropriate people gain access to data in a computer system. This is called authentication. Once users gain entry, it is also important that they only see data related to their role in a computer system. This is called authorization. For the zoo, you will develop an authentication system that manages both authentication and authorization. You have been given a credentials file that contains credential information for authorized users. You have also been given three files, one for each role: zookeeper, veterinarian, and admin. Each role file describes the data the particular role should be authorized to access.

Create an authentication system that does all of the following:

 Asks the user for a username

 Asks the user for a password

 Converts the password using a message digest five (MD5) hash o It is not required that you write the MD5 from scratch. Use the code located in this document and follow the comments in it to perform this operation.

 Checks the credentials against the valid credentials provided in the credentials file o Use the hashed passwords in the second column; the third column contains the actual passwords for testing and the fourth row contains the role of each user.

 Limits failed attempts to three before notifying the user and exiting the program

 Gives authenticated users access to the correct role file after successful authentication o The system information stored in the role file should be displayed. For example, if a zookeeper’s credentials is successfully authenticated, then the contents from the zookeeper file will be displayed. If an admin’s credentials is successfully authenticated, then the contents from the admin file will be displayed.

 Allows a user to log out

 Stays on the credential screen until either a successful attempt has been made, three unsuccessful attempts have been made, or a user chooses to exit


I have started to complete this program, but I am running into some problems. I attached my code, but I am having trouble figuring out a way to link the program to the credentials file and then have the program pull up the user role information. I made a second separate userRoles class, but my authentication system program is not connecting to it. I am not entirely sure how to get the two classes in my package to connect. Any help would be greatly appreciated! Both programs are attached with the progress I have made thus far.

Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Virginia
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors