| | |
| | | { |
| | | // Get a handle to the current configuration. |
| | | DictionaryPasswordValidatorCfg config = currentConfig; |
| | | |
| | | |
| | | // Check to see if the provided password is in the dictionary in the order |
| | | // that it was provided. |
| | | String password = newPassword.toString(); |
| | |
| | | minSubstringLength = config.getMinSubstringLength(); |
| | | } |
| | | } |
| | | |
| | | |
| | | // Verify if the dictionary contains the word(s) in the password |
| | | if (isDictionaryBased(password, minSubstringLength)) |
| | | { |
| | |
| | | ERR_DICTIONARY_VALIDATOR_PASSWORD_IN_DICTIONARY.get()); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | // If the reverse password checking is enabled, then verify if the |
| | | // reverse value of the password is in the dictionary. |
| | | if (config.isTestReversedPassword()) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | // If we've gotten here, then the password is acceptable. |
| | | return true; |
| | | } |