From 6439bba5cc09d6febc59bdc9e0d9bc25f1f1eb18 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 01 Sep 2010 09:04:15 +0000
Subject: [PATCH] Various improvements:

---
 sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java b/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
index 33d8249..012e294 100644
--- a/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
+++ b/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
@@ -117,6 +117,62 @@
 
 
   /**
+   * Set the protocol versions enabled for secure connections with the
+   * Directory Server.
+   *
+   * The protocols must be supported by the SSLContext specified in
+   * {@link #setSSLContext(SSLContext)}. Following a successful call to
+   * this method, only the protocols listed in the protocols parameter are
+   * enabled for use.
+   *
+   * @param protocols Names of all the protocols to enable or {@code null} to
+   *                  use the default protocols.
+   * @return A reference to this LDAP connection options.
+   */
+  StartTLSExtendedRequest setEnabledProtocols(String[] protocols);
+
+
+
+  /**
+   * Set the cipher suites enabled for secure connections with the
+   * Directory Server.
+   *
+   * The suites must be supported by the SSLContext specified in
+   * {@link #setSSLContext(SSLContext)}. Following a successful call to
+   * this method, only the suites listed in the protocols parameter are
+   * enabled for use.
+   *
+   * @param suites Names of all the suites to enable or {@code null} to
+   *                  use the default cipher suites.
+   * @return A reference to this LDAP connection options.
+   */
+  StartTLSExtendedRequest setEnabledCipherSuites(String[] suites);
+
+
+
+  /**
+   * Returns the names of the protocol versions which are currently enabled
+   * for secure connections with the Directory Server.
+   *
+   * @return an array of protocols or {@code null} if the default protocols
+   * are to be used.
+   */
+  String[] getEnabledProtocols();
+
+
+
+  /**
+   * Returns the names of the protocol versions which are currently enabled
+   * for secure connections with the Directory Server.
+   *
+   * @return an array of protocols or {@code null} if the default protocols
+   * are to be used.
+   */
+  String[] getEnabledCipherSuites();
+
+
+
+  /**
    * {@inheritDoc}
    */
   ByteString getValue();

--
Gitblit v1.10.0