One method will check for a weak password ie one whose length is between 6 and

One method will check for a weak password ie one

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

One method will check for a “weak password”, i.e., one whose length is between 6 and 9, inclusive. Do NOT throw an exception. One method will check an ArrayList of passwords and return 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. The GUI 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 and a mnemonic 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: 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) Message – The password must contain at least one uppercase alphabetic character 3. Password doesn’t contain a lowercase alpha character (class NoLowerAlphaException) Message – The password must contain at least one lowercase alphabetic character 4. Password doesn’t contain a numeric character (class NoDigitException) Message – The password must contain at least one digit
Image of page 2
5. Password contains more than 2 of the same character in sequence (class InvalidSequenceException) Message – The password cannot contain more than two of the same character in sequence.
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture