From 445e7dacd8794fdaf8967748015a446668c261cc Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 06 Apr 2007 07:28:41 +0000
Subject: [PATCH] Issue 1484 fix (use new admin framework for password generation configuration)
---
opends/src/server/org/opends/server/api/PasswordGenerator.java | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/PasswordGenerator.java b/opends/src/server/org/opends/server/api/PasswordGenerator.java
index da63dcd..ed15e83 100644
--- a/opends/src/server/org/opends/server/api/PasswordGenerator.java
+++ b/opends/src/server/org/opends/server/api/PasswordGenerator.java
@@ -28,7 +28,7 @@
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.PasswordGeneratorCfg;
import org.opends.server.config.ConfigException;
import org.opends.server.types.ByteString;
import org.opends.server.types.DirectoryException;
@@ -45,8 +45,12 @@
* of a password policy, and is used by the password modify extended
* operation to construct a new password for the user if that option
* is chosen.
+ *
+ * @param <T> The type of configuration handled by this password
+ * generator.
*/
public abstract class PasswordGenerator
+ <T extends PasswordGeneratorCfg>
{
@@ -55,9 +59,8 @@
* Initializes this password generator based on the information in
* the provided configuration entry.
*
- * @param configEntry The configuration entry that contains the
- * information to use to initialize this
- * password generator.
+ * @param configuration The configuration to use to initialize
+ * this password validator.
*
* @throws ConfigException If an unrecoverable problem arises in
* the process of performing the
@@ -68,8 +71,7 @@
* related to the server
* configuration.
*/
- public abstract void initializePasswordGenerator(
- ConfigEntry configEntry)
+ public abstract void initializePasswordGenerator(T configuration)
throws ConfigException, InitializationException;
--
Gitblit v1.10.0