From 940c033c4446ed6e09ebe45be25e2cf85c9321be 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.

---
 opendj-sdk/sdk/src/org/opends/sdk/requests/PlainSASLBindRequest.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/sdk/src/org/opends/sdk/requests/PlainSASLBindRequest.java b/opendj-sdk/sdk/src/org/opends/sdk/requests/PlainSASLBindRequest.java
index 67aa6f8..fccb0e8 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/requests/PlainSASLBindRequest.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/requests/PlainSASLBindRequest.java
@@ -158,6 +158,9 @@
    * @param authenticationID
    *          The authentication ID of the user.
    * @return This bind request.
+   * @throws UnsupportedOperationException
+   *           If this bind request does not permit the authentication ID to be
+   *           set.
    * @throws LocalizedIllegalArgumentException
    *           If {@code authenticationID} was non-empty and did not contain a
    *           valid authorization ID type.
@@ -165,7 +168,8 @@
    *           If {@code authenticationID} was {@code null}.
    */
   PlainSASLBindRequest setAuthenticationID(String authenticationID)
-      throws LocalizedIllegalArgumentException, NullPointerException;
+      throws UnsupportedOperationException, LocalizedIllegalArgumentException,
+      NullPointerException;
 
 
 
@@ -179,12 +183,15 @@
    * @param authorizationID
    *          The authorization ID of the user, which may be {@code null}.
    * @return This bind request.
+   * @throws UnsupportedOperationException
+   *           If this bind request does not permit the authorization ID to be
+   *           set.
    * @throws LocalizedIllegalArgumentException
    *           If {@code authorizationID} was non-empty and did not contain a
    *           valid authorization ID type.
    */
   PlainSASLBindRequest setAuthorizationID(String authorizationID)
-      throws LocalizedIllegalArgumentException;
+      throws UnsupportedOperationException, LocalizedIllegalArgumentException;
 
 
 

--
Gitblit v1.10.0