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/PasswordModifyExtendedRequest.java | 36 ++++++++++++++++++++++++++++++------
1 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/sdk/src/org/opends/sdk/requests/PasswordModifyExtendedRequest.java b/sdk/src/org/opends/sdk/requests/PasswordModifyExtendedRequest.java
index 5812d0a..416b0d4 100644
--- a/sdk/src/org/opends/sdk/requests/PasswordModifyExtendedRequest.java
+++ b/sdk/src/org/opends/sdk/requests/PasswordModifyExtendedRequest.java
@@ -201,8 +201,12 @@
* The desired password for the user, or {@code null} if a new
* password should be generated.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the new
+ * password to be set.
*/
- PasswordModifyExtendedRequest setNewPassword(ByteString newPassword);
+ PasswordModifyExtendedRequest setNewPassword(ByteString newPassword)
+ throws UnsupportedOperationException;
@@ -214,8 +218,12 @@
* The desired password for the user, or {@code null} if a new
* password should be generated.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the new
+ * password to be set.
*/
- PasswordModifyExtendedRequest setNewPassword(String newPassword);
+ PasswordModifyExtendedRequest setNewPassword(String newPassword)
+ throws UnsupportedOperationException;
@@ -226,8 +234,12 @@
* The current password for the user, or {@code null} if the password
* is not known.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the old
+ * password to be set.
*/
- PasswordModifyExtendedRequest setOldPassword(ByteString oldPassword);
+ PasswordModifyExtendedRequest setOldPassword(ByteString oldPassword)
+ throws UnsupportedOperationException;
@@ -239,8 +251,12 @@
* The current password for the user, or {@code null} if the password
* is not known.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the old
+ * password to be set.
*/
- PasswordModifyExtendedRequest setOldPassword(String oldPassword);
+ PasswordModifyExtendedRequest setOldPassword(String oldPassword)
+ throws UnsupportedOperationException;
@@ -253,8 +269,12 @@
* {@code null} if the request should be applied to the user
* currently associated with the session.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the user
+ * identity to be set.
*/
- PasswordModifyExtendedRequest setUserIdentity(ByteString userIdentity);
+ PasswordModifyExtendedRequest setUserIdentity(ByteString userIdentity)
+ throws UnsupportedOperationException;
@@ -268,7 +288,11 @@
* {@code null} if the request should be applied to the user
* currently associated with the session.
* @return This password modify request.
+ * @throws UnsupportedOperationException
+ * If this password modify extended request does not permit the user
+ * identity to be set.
*/
- PasswordModifyExtendedRequest setUserIdentity(String userIdentity);
+ PasswordModifyExtendedRequest setUserIdentity(String userIdentity)
+ throws UnsupportedOperationException;
}
--
Gitblit v1.10.0