From 887e246785056b972a725b5ef8457980325216fb Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 22 Oct 2010 07:03:51 +0000
Subject: [PATCH] Sync commits from boli Added unmodifiable and copyOf response factories. Made LinkedHashMapEntry copy constructor perform a deep copy of attributes.
---
sdk/src/org/opends/sdk/responses/BindResultImpl.java | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/sdk/src/org/opends/sdk/responses/BindResultImpl.java b/sdk/src/org/opends/sdk/responses/BindResultImpl.java
index 3a1fa84..a10bc39 100644
--- a/sdk/src/org/opends/sdk/responses/BindResultImpl.java
+++ b/sdk/src/org/opends/sdk/responses/BindResultImpl.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2009 Sun Microsystems, Inc.
+ * Copyright 2010 Sun Microsystems, Inc.
*/
package org.opends.sdk.responses;
@@ -60,6 +60,24 @@
/**
+ * Creates a new bind result that is an exact copy of the provided
+ * result.
+ *
+ * @param bindResult
+ * The bind result to be copied.
+ * @throws NullPointerException
+ * If {@code bindResult} was {@code null} .
+ */
+ BindResultImpl(final BindResult bindResult)
+ throws NullPointerException
+ {
+ super(bindResult);
+ this.credentials = bindResult.getServerSASLCredentials();
+ }
+
+
+
+ /**
* {@inheritDoc}
*/
public ByteString getServerSASLCredentials()
--
Gitblit v1.10.0