The class will have at least two methods One method that

The class will have at least two methods one method

This preview shows page 2 - 4 out of 10 pages.

Create a PasswordCheckerUtility class based on the Javadoc given you. The PasswordCheckerUtility class will have at least two methods: One method that checks the validity of one password that returns true if the password is valid and that throws an exception if invalid. One that checks an ArrayList of passwords and returns an ArrayList with the status of any invalid passwords (weak passwords are not considered invalid). The ArrayList of invalid passwords will be of the following format: <password><space><message of exception thrown> Create exception classes for each exception listed in PasswordCheckerUtility Javadoc. Always check for the length of the password first, since that is the easiest and fastest check. Once the password fails one rule, you do not need to check the rest of the rules. GUI driver Provide buttons to allow user to check validity of one password or a file of passwords. Ask the user to enter the password and to re-type the password. If the two are not the same, inform the user. Create a tool tip for each of the buttons. Use a FileChooser for the user to select the input file. Use methods of PasswordCheckerUtility to process the passwords. Use try/catch structure to catch exceptions thrown by PasswordCheckerUtility methods Exceptions Provide exception classes for the following: Classes
Image of page 2
1. Length of password is less than 6 characters (class LengthException) Message – The password must be at least 6 characters long 2. Password doesn’t contain an uppercase alpha character (class NoUpperAlphaException)
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture