From 1734229125e7bad5f85dfe11d076eeda206236a9 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 18 Oct 2010 19:41:47 +0000
Subject: [PATCH] Update from OpenDS sdk by Bo Li: Added unmodifiable and copyOf request factories. Added authrate performance utility.

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

diff --git a/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java b/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
index 012e294..abe4270 100644
--- a/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
+++ b/sdk/src/org/opends/sdk/requests/StartTLSExtendedRequest.java
@@ -117,7 +117,7 @@
 
 
   /**
-   * Set the protocol versions enabled for secure connections with the
+   * Adds the protocol versions enabled for secure connections with the
    * Directory Server.
    *
    * The protocols must be supported by the SSLContext specified in
@@ -125,16 +125,18 @@
    * 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.
+   * @param protocols Names of all the protocols to enable.
    * @return A reference to this LDAP connection options.
+   * @throws UnsupportedOperationException
+   *           If this start TLS extended request does not permit the enabled
+   *           protocols to be set.
    */
-  StartTLSExtendedRequest setEnabledProtocols(String[] protocols);
-
+  StartTLSExtendedRequest addEnabledProtocol(String... protocols)
+      throws UnsupportedOperationException;
 
 
   /**
-   * Set the cipher suites enabled for secure connections with the
+   * Adds the cipher suites enabled for secure connections with the
    * Directory Server.
    *
    * The suites must be supported by the SSLContext specified in
@@ -142,11 +144,14 @@
    * 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.
+   * @param suites Names of all the suites to enable.
    * @return A reference to this LDAP connection options.
+   * @throws UnsupportedOperationException
+   *           If this start TLS extended request does not permit the enabled
+   *           cipher suites to be set.
    */
-  StartTLSExtendedRequest setEnabledCipherSuites(String[] suites);
+  StartTLSExtendedRequest addEnabledCipherSuite(String... suites)
+      throws UnsupportedOperationException;
 
 
 
@@ -154,10 +159,10 @@
    * 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
+   * @return an array of protocols or empty set if the default protocols
    * are to be used.
    */
-  String[] getEnabledProtocols();
+  List<String> getEnabledProtocols();
 
 
 
@@ -165,10 +170,10 @@
    * 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
+   * @return an array of protocols or empty set if the default protocols
    * are to be used.
    */
-  String[] getEnabledCipherSuites();
+  List<String> getEnabledCipherSuites();
 
 
 

--
Gitblit v1.10.0