[Solved]Java Hello M Issues Building Functional Code Final Work Java Basically Authentication Aut Q37141203
JAVA ONLY!!!!!
Hello There!! I’m having issues building out the functional codeto my final work(JAVA). It is basically anAuthentication/Authorization program to validate a userscredentials. Below will ill place the actual instructionsand my PSEUDOCODE, which could be edited if anyone sees fit, butthe code should follow the logic I built out
Option 1: Authentication System For security-mindedprofessionals, it is important that only the appropriate peoplegain access to data in a computer system. This is calledauthentication. Once users gain entry, it is also important thatthey only see data related to their role in a computer system. Thisis called authorization. For the zoo, you will develop anauthentication system that manages both authentication andauthorization. You have been given a credentials file that containscredential information for authorized users. You have also beengiven three files, one for each role: zookeeper, veterinarian, andadmin. Each role file describes the data the particular role shouldbe authorized to access. Create an authentication system that doesall 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 fromscratch. Use the code located in this document and follow thecomments in it to perform this operation.
Checks the credentials against the valid credentialsprovided in the credentialsfile o Use the hashed passwordsin thesecond column; the third column contains the actual passwords fortesting and the fourth row contains the role of eachuser.
Limits failed attempts to three before notifying theuser and exiting theprogram
Gives authenticated users access to the correct rolefile after successfulauthentication o The system information storedin the role file should be displayed. For example, if a zookeeper’scredentials is successfully authenticated, then the contents fromthe zookeeper file will be displayed. If an admin’s credentials issuccessfully authenticated, then the contents from the admin filewill be displayed.
Allows a user to log out
Stays on the credential screen until either asuccessful attempt has been made, three unsuccessful attempts havebeen made, or a user chooses to exit
You are allowed to add extra roles if you would like tosee another type of user added to the system, but you may notremove any of the existing roles.
PSEUDOCODE:
WHILE attempts EQUALS 3 OR LESS
GET username
GET password
CONVERT password (usingMD5hash)
READ credentials
ELSE
Give user access tofiles
ENDFOR
Notify user and exitprogram
IF credentials = Zookeeper
PRINT files relatedto Zookeeper
ELSEIF credentials =Veterinarian
PRINT files forveterinarian
ELSE
PRINT files forAdmin
ENDFOR
Shut down program.
Expert Answer
Answer to JAVA ONLY!!!!! Hello There!! I’m having issues building out the functional code to my final work(JAVA). It is basically … . . .
OR

