| | |
| | | */ |
| | | public PasswordStorageSchemeConfigManager() |
| | | { |
| | | |
| | | configHandler = DirectoryServer.getConfigHandler(); |
| | | storageSchemes = new ConcurrentHashMap<DN,PasswordStorageScheme>(); |
| | | } |
| | |
| | | public void initializePasswordStorageSchemes() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // First, get the configuration base entry. |
| | | ConfigEntry baseEntry; |
| | | try |
| | |
| | | public boolean configChangeIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // Make sure that the entry has an appropriate objectclass for a password |
| | | // storage scheme. |
| | | if (! configEntry.hasObjectClass(OC_PASSWORD_STORAGE_SCHEME)) |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationChange(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configAddIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // Make sure that no entry already exists with the specified DN. |
| | | DN configEntryDN = configEntry.getDN(); |
| | | if (storageSchemes.containsKey(configEntryDN)) |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationAdd(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configDeleteIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // A delete should always be acceptable, so just return true. |
| | | return true; |
| | | } |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationDelete(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |