| | |
| | | extends PasswordValidator<CharacterSetPasswordValidatorCfg> |
| | | implements ConfigurationChangeListener<CharacterSetPasswordValidatorCfg> |
| | | { |
| | | // The current configuration for this password validator. |
| | | /** The current configuration for this password validator. */ |
| | | private CharacterSetPasswordValidatorCfg currentConfig; |
| | | |
| | | // A mapping between the character sets and the minimum number of characters |
| | | // required for each. |
| | | /** |
| | | * A mapping between the character sets and the minimum number of characters |
| | | * required for each. |
| | | */ |
| | | private HashMap<String,Integer> characterSets; |
| | | |
| | | // A mapping between the character ranges and the minimum number of characters |
| | | // required for each. |
| | | /** |
| | | * A mapping between the character ranges and the minimum number of characters |
| | | * required for each. |
| | | */ |
| | | private HashMap<String,Integer> characterRanges; |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | CharacterSetPasswordValidatorCfg configuration) |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isConfigurationChangeAcceptable( |
| | | CharacterSetPasswordValidatorCfg configuration, |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationChange( |
| | | CharacterSetPasswordValidatorCfg configuration) |