mardi 5 novembre 2019

Password validation in Java

I would like you to help in creating the following: A password must meet special requirements, for instance, it has to be of a specific length, contains at least 2 capital letters, 2 lowercase letters, 2 symbols and 2 digits. The first object created will be for the first level clients which require a moderate level password which contains ( at least 1 capital letters, 1 lowercase letter,1 symbol, and 1 digit). The first level should be created using a default constructor. The length of any password should be at least 8 characters for all levels.

The second object created will be for the second level clients which require a harder level password which contains ( at least 2 capital letters, 2 lowercase letters,2 symbols, and 2 digits). The second level should be created using an overloaded constructor. the length of the second level password should be at least 8 as it required for any levels.

The third object created will be for the third level clients which require a harder level password which contains ( at least 3 capital letters, 3 lowercase letters,3 symbols, and 3 digits). The third level should be created using an overloaded constructor. The length of the third level password should be at least 12.

The fourth object is an extreme case, if an object created using extreme case settings, for instance, a negative number or more than 3 of (capital letters, lowercase.....etc.), then it should be revert back to the default settings using the default constructor.




Aucun commentaire:

Enregistrer un commentaire