| | |
| | | */ |
| | | public PasswordPolicyConfig(PasswordPolicy policy) |
| | | { |
| | | |
| | | this.currentPolicy = policy; |
| | | DirectoryServer.registerConfigurableComponent(this); |
| | | } |
| | |
| | | */ |
| | | public void finalizePasswordPolicyConfig() |
| | | { |
| | | |
| | | DirectoryServer.deregisterConfigurableComponent(this); |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getConfigurableComponentEntryDN() |
| | | { |
| | | |
| | | return currentPolicy.getConfigEntryDN(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public List<ConfigAttribute> getConfigurationAttributes() |
| | | { |
| | | |
| | | |
| | | // Create a list of units and values that we can use to represent time |
| | | // periods. |
| | | LinkedHashMap<String,Double> timeUnits = new LinkedHashMap<String,Double>(); |
| | |
| | | public boolean hasAcceptableConfiguration(ConfigEntry configEntry, |
| | | List<String> unacceptableReasons) |
| | | { |
| | | |
| | | assert configEntry.getDN().equals(this.currentPolicy.getConfigEntryDN() ) |
| | | : "Internal Error: mismatch between DN of configuration entry and" |
| | | + "DN of current password policy." ; |
| | |
| | | public ConfigChangeResult applyNewConfiguration(ConfigEntry configEntry, |
| | | boolean detailedResults) |
| | | { |
| | | |
| | | assert configEntry.getDN().equals(this.currentPolicy.getConfigEntryDN() ) |
| | | : "Internal Error: mismatch between DN of configuration entry and" |
| | | + "DN of current password policy." ; |