From 2861a1aad527dae9aea800386d58fc7416233ae5 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 23 Mar 2007 14:26:04 +0000
Subject: [PATCH] Merge admin framework from config-prototype-branch onto trunk.

---
 opendj-sdk/opends/src/server/org/opends/server/api/KeyManagerProvider.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/KeyManagerProvider.java b/opendj-sdk/opends/src/server/org/opends/server/api/KeyManagerProvider.java
index 8e84dec..dbbbcb0 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/KeyManagerProvider.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/KeyManagerProvider.java
@@ -30,6 +30,7 @@
 
 import javax.net.ssl.KeyManager;
 
+import org.opends.server.admin.std.server.KeyManagerCfg;
 import org.opends.server.config.ConfigEntry;
 import org.opends.server.config.ConfigException;
 import org.opends.server.types.DirectoryException;
@@ -41,8 +42,13 @@
  * This class defines an API that may be used to obtain a set of
  * <CODE>javax.net.ssl.KeyManager</CODE> objects for use when
  * performing SSL communication.
+ *
+ * @param <T>
+ *          The type of key manager provider configuration handled by
+ *          this key manager provider implementation.
  */
 public abstract class KeyManagerProvider
+    <T extends KeyManagerCfg>
 {
   /**
    * Initializes this key manager provider based on the information in
@@ -69,6 +75,27 @@
 
 
   /**
+   * Initializes this key manager provider based on the information in
+   * the provided key manager provider configuration.
+   *
+   * @param configuration
+   *          The key manager provider configuration that contains the
+   *          information to use to initialize this key manager
+   *          provider.
+   * @throws ConfigException
+   *           If an unrecoverable problem arises in the process of
+   *           performing the initialization as a result of the server
+   *           configuration.
+   * @throws InitializationException
+   *           If a problem occurs during initialization that is not
+   *           related to the server configuration.
+   */
+  public abstract void initializeKeyManagerProvider(T configuration)
+      throws ConfigException, InitializationException;
+
+
+
+  /**
    * Performs any finalization that may be necessary for this key
    * manager provider.
    */

--
Gitblit v1.10.0