mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
08.43.2007 43e9c7913fc664b725e167090fe6d389a4558315
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.
   */