• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help in a basic user authentication program final project  RSS feed

 
Olly Bacons
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

I am in my last project for my JAVA class and have worked for hours! Each time I redo it I come to a new error. Any advice would be great!

Here is what the project is:

Option 1: Authentication System 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.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Can you show us what have you tried so far and where you are stuck?

Christian Pool wrote:Each time I redo it I come to a new error. Any advice would be great!

Unless we see your code, we cannot help you fix it.

Your requirement description says "page" so I take it this is a web application.
At a bare minimum, you will need
1) Page for accepting user credentials
2) Mechanism to authenticate them
3) Mechanism to read from the source files
4) Mechanism to send the corresponding content (e.g. zookeeper file) after authentication to the client

So, what have you got?
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Your requirement description says "page" so I take it this is a web application.

Actually, there is no mention of "page" at all. There is a reference to "screen" but that doesn't imply a web application. I think the requirements leave it to the implementor to decide, unless of course the contents of those role-specific files is html. If the purpose is to see the student implement the security mechanisms mentioned, however, I think a full web app may be over-reaching.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Junilu Lacar wrote:
Actually, there is no mention of "page" at all. There is a reference to "screen" but that doesn't imply a web application.

Oops! My bad. I think I took a small mental jump there. Thanks for pointing it out
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!