Question: In Java Programming Language We will design an authentication system where users will be granted access to certain resources. Create a class called com.secretcompany.Authenticate. Create

 In Java Programming Language We will design an authentication system where

In Java Programming Language

We will design an authentication system where users will be granted access to certain resources. Create a class called com.secretcompany.Authenticate. Create an inteface called com.secretcompany.auth.Usr. public String getPWO) public String getUld() public Integer getEmpId() (can be null!) Provide a static method in Authenticate called isValidUser(Usr) to return where or not a Usr meets the following requirements. the id and pw must match one of the two values below the emp id between 2-11, inclusive MUST. match any of these values, otherwise user is not valid. If getEmpID() is null, throw a new RuntimeException If the Usr does NOT meet these reqs, return false. "IGoode", "secret$" "HAckerman", "breached1" Note how the code must compile at this point. Now, implement Usr with a class named com.secretcompany.users.RegUsr. In Authenticate, add a main to test this code. We will design an authentication system where users will be granted access to certain resources. Create a class called com.secretcompany.Authenticate. Create an inteface called com.secretcompany.auth.Usr. public String getPWO) public String getUld() public Integer getEmpId() (can be null!) Provide a static method in Authenticate called isValidUser(Usr) to return where or not a Usr meets the following requirements. the id and pw must match one of the two values below the emp id between 2-11, inclusive MUST. match any of these values, otherwise user is not valid. If getEmpID() is null, throw a new RuntimeException If the Usr does NOT meet these reqs, return false. "IGoode", "secret$" "HAckerman", "breached1" Note how the code must compile at this point. Now, implement Usr with a class named com.secretcompany.users.RegUsr. In Authenticate, add a main to test this code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!