| | |
| | | public void initializePasswordValidator(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | configEntryDN = configEntry.getDN(); |
| | | |
| | | |
| | |
| | | @Override() |
| | | public void finalizePasswordValidator() |
| | | { |
| | | |
| | | DirectoryServer.deregisterConfigurableComponent(this); |
| | | } |
| | | |
| | |
| | | Operation operation, Entry userEntry, |
| | | StringBuilder invalidReason) |
| | | { |
| | | |
| | | |
| | | int numChars = newPassword.stringValue().length(); |
| | | |
| | | if ((minLength > 0) && (numChars < minLength)) |
| | |
| | | */ |
| | | public DN getConfigurableComponentEntryDN() |
| | | { |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public List<ConfigAttribute> getConfigurationAttributes() |
| | | { |
| | | |
| | | |
| | | LinkedList<ConfigAttribute> attrs = new LinkedList<ConfigAttribute>(); |
| | | |
| | | int msgID = MSGID_PWLENGTHVALIDATOR_DESCRIPTION_MIN_LENGTH; |
| | |
| | | public boolean hasAcceptableConfiguration(ConfigEntry configEntry, |
| | | List<String> unacceptableReasons) |
| | | { |
| | | |
| | | |
| | | // Get the configured minimum length. |
| | | int newMinLength = 0; |
| | | int msgID = MSGID_PWLENGTHVALIDATOR_DESCRIPTION_MIN_LENGTH; |
| | |
| | | public ConfigChangeResult applyNewConfiguration(ConfigEntry configEntry, |
| | | boolean detailedResults) |
| | | { |
| | | |
| | | |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | | ArrayList<String> messages = new ArrayList<String>(); |