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/SecurityOptions.java | 33 +--------------------------------
1 files changed, 1 insertions(+), 32 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/SecurityOptions.java b/opends/src/quicksetup/org/opends/quicksetup/SecurityOptions.java
index 178a5a1..58cfab1 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/SecurityOptions.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/SecurityOptions.java
@@ -65,8 +65,6 @@
}
private CertificateType certificateType;
-
- private String selfSignedCertificateName;
private String keyStorePath;
private String keyStorePassword;
private String aliasToUse;
@@ -93,19 +91,17 @@
/**
* Creates a new instance of a SecurityOptions using a self-signed
* certificate.
- * @param name the name of the certificate (the CN value).
* @param enableSSL whether SSL is enabled or not.
* @param enableStartTLS whether Start TLS is enabled or not.
* @param sslPort the value of the LDAPS port.
* @return a new instance of a SecurityOptions using a self-signed
* certificate.
*/
- public static SecurityOptions createSelfSignedCertificateOptions(String name,
+ public static SecurityOptions createSelfSignedCertificateOptions(
boolean enableSSL, boolean enableStartTLS, int sslPort)
{
SecurityOptions ops = new SecurityOptions();
ops.setCertificateType(CertificateType.SELF_SIGNED_CERTIFICATE);
- ops.setSelfSignedCertificateName(name);
updateCertificateOptions(ops, enableSSL, enableStartTLS, sslPort, null);
return ops;
}
@@ -270,24 +266,6 @@
}
/**
- * Returns the self-signed certificate name.
- * @return the self-signed certificate name.
- */
- public String getSelfSignedCertificateName()
- {
- return selfSignedCertificateName;
- }
-
- /**
- * Sets the self-signed certificate name.
- * @param selfSignedCertificateName the new self-signed certificate name.
- */
- private void setSelfSignedCertificateName(String selfSignedCertificateName)
- {
- this.selfSignedCertificateName = selfSignedCertificateName;
- }
-
- /**
* Updates the provided certificate options object with some parameters.
* @param ops the SecurityOptions object to be updated.
* @param enableSSL whether to enable SSL or not.
@@ -328,15 +306,6 @@
}
/**
- * Sets the Self-Signed certificate name (the CN).
- * @param selfSignedCertificateName the new Self-Signed certificate name.
- */
- void setCertificateUserName(String selfSignedCertificateName)
- {
- this.selfSignedCertificateName = selfSignedCertificateName;
- }
-
- /**
* Returns the alias of the certificate in the keystore to be used.
* @return the alias of the certificate in the keystore to be used.
*/
--
Gitblit v1.10.0