Question: a class that verifies that a password meets a stated criteria. The Password class should define a static String constant that stores the password criteria

a class that verifies that a password meets a stated criteria. The Password class should define a

static String constant that stores the password criteria noted below. The class also defines a static validate

method that receives a String password as a parameter. The validate method returns Valid password

when the parameter String meets all criteria. For all criteria not met, the validate method returns a String

containing the criteria violated.

Also develop a test Client class that requests a password from the end user and uses the Password class to

determine whether or not the given password is valid. Details are reported back to the end user. The end

user should be able to test any number of passwords.

Password criteria:

Must contain a minimum of 8 characters.

Must not contain spaces.

Must contain at least one upper case letter.

Must contain at least one lower case letter.

Must contain at least one number or special character.

Example run:

This program will test passwords against the fallowing rules

Must contain a minimum of 8 characters.

Must not contain spaces.

Must contain at least one uppercase letter.

Must contain at least one lowercase letter.

Must contain at least one number or special character.

Enter a password to test (quit to end): what

Invalid password.

Must contain a minimum of 8 characters.

Must contain at least one lowercase letter.

Must contain at least one number or special character.

My question is can you write this in java fallowing all directions specified and use JGrasp to write it?

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!