Question: Problem 2 (3.5 pts.): Consider the Login form you developed in the previous assignment. Create a Java client code to submit the usemame/password to a

Problem 2 (3.5 pts.): Consider the Login form you developed in the previous assignment. Create a Java client code to submit the usemame/password to a server code. This is done when the client user clicks on the Login button. On the server side, the code will check if the username and password received from the client are valid. Let the valid username/password pairs be stored in an array of Strings in the server code. The array should consist of 10 pairs and having the following structure: String | logins=new String[] {"user1", "pass l","user2","pass2, ..., "user10, pass10'} The server should check if the username/password received from the client is part of its array. If this is the case, it sends a "yes response to the client, else it sends a 'no" response. When the client receives the server's response, it will inform the user via a showMessageDialog message if the authentication is successful or not. Username: Password: Login Problem 2 (3.5 pts.): Consider the Login form you developed in the previous assignment. Create a Java client code to submit the usemame/password to a server code. This is done when the client user clicks on the Login button. On the server side, the code will check if the username and password received from the client are valid. Let the valid username/password pairs be stored in an array of Strings in the server code. The array should consist of 10 pairs and having the following structure: String | logins=new String[] {"user1", "pass l","user2","pass2, ..., "user10, pass10'} The server should check if the username/password received from the client is part of its array. If this is the case, it sends a "yes response to the client, else it sends a 'no" response. When the client receives the server's response, it will inform the user via a showMessageDialog message if the authentication is successful or not. Username: Password: Login
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
