From 43e9c7913fc664b725e167090fe6d389a4558315 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 14:43:45 +0000
Subject: [PATCH] The following commit adds all the code necessary to be able to configure replication using the setup.

---
 opends/src/quicksetup/org/opends/quicksetup/Application.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Application.java b/opends/src/quicksetup/org/opends/quicksetup/Application.java
index eda03c8..4fa82af 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Application.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Application.java
@@ -27,6 +27,7 @@
 
 package org.opends.quicksetup;
 
+import org.opends.admin.ads.util.ApplicationTrustManager;
 import org.opends.quicksetup.event.ProgressNotifier;
 import org.opends.quicksetup.event.ProgressUpdateListener;
 import org.opends.quicksetup.event.ProgressUpdateEvent;
@@ -64,6 +65,8 @@
 
   private ServerController serverController;
 
+  private ApplicationTrustManager trustManager;
+
   /** Formats progress messages. */
   protected ProgressMessageFormatter formatter;
 
@@ -526,6 +529,21 @@
   abstract public boolean isFinished();
 
   /**
+   * Returns the trust manager that can be used to establish secure connections.
+   * @return the trust manager that can be used to establish secure connections.
+   */
+  protected ApplicationTrustManager getTrustManager()
+  {
+    if (trustManager == null)
+    {
+      trustManager = new ApplicationTrustManager();
+    }
+    return trustManager;
+  }
+
+
+
+  /**
    * Indicates whether or not this application is capable of cancelling
    * the operation performed in the run method.  A cancellable operation
    * should leave its environment in the same state as it was prior to

--
Gitblit v1.10.0