| | |
| | | public void initializePasswordGenerator(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | this.configEntryDN = configEntry.getDN(); |
| | | generatorLock = new ReentrantLock(); |
| | | |
| | |
| | | */ |
| | | public void finalizePasswordGenerator() |
| | | { |
| | | |
| | | DirectoryServer.deregisterConfigurableComponent(this); |
| | | } |
| | | |
| | |
| | | public ByteString generatePassword(Entry userEntry) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | StringBuilder buffer = new StringBuilder(totalLength); |
| | | |
| | | generatorLock.lock(); |
| | |
| | | */ |
| | | public DN getConfigurableComponentEntryDN() |
| | | { |
| | | |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public List<ConfigAttribute> getConfigurationAttributes() |
| | | { |
| | | |
| | | |
| | | LinkedList<ConfigAttribute> attrList = new LinkedList<ConfigAttribute>(); |
| | | |
| | | ArrayList<String> charsetValues = new ArrayList<String>(); |
| | |
| | | public boolean hasAcceptableConfiguration(ConfigEntry configEntry, |
| | | List<String> unacceptableReasons) |
| | | { |
| | | |
| | | |
| | | // Get the character sets for use in generating the password. At least one |
| | | // must have been provided. |
| | | HashMap<String,NamedCharacterSet> charsets = |
| | |
| | | public ConfigChangeResult applyNewConfiguration(ConfigEntry configEntry, |
| | | boolean detailedResults) |
| | | { |
| | | |
| | | |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | | ArrayList<String> messages = new ArrayList<String>(); |