From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.

---
 opends/src/server/org/opends/server/core/BindOperationWrapper.java |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/BindOperationWrapper.java b/opends/src/server/org/opends/server/core/BindOperationWrapper.java
index 970105b..ea77c0c 100644
--- a/opends/src/server/org/opends/server/core/BindOperationWrapper.java
+++ b/opends/src/server/org/opends/server/core/BindOperationWrapper.java
@@ -25,6 +25,7 @@
  *      Portions Copyright 2007 Sun Microsystems, Inc.
  */
 package org.opends.server.core;
+import org.opends.messages.Message;
 
 
 import org.opends.server.protocols.asn1.ASN1OctetString;
@@ -35,6 +36,7 @@
 import org.opends.server.types.Entry;
 
 
+
 /**
  * This abstract class wraps/decorates a given bind operation.
  * This class will be extended by sub-classes to enhance the
@@ -76,15 +78,7 @@
   /**
    * {@inheritDoc}
    */
-  public int getAuthFailureID()
-  {
-    return bind.getAuthFailureID();
-  }
-
-  /**
-   * {@inheritDoc}
-   */
-  public String getAuthFailureReason()
+  public Message getAuthFailureReason()
   {
     return bind.getAuthFailureReason();
   }
@@ -164,7 +158,7 @@
   /**
    * {@inheritDoc}
    */
-  public void setAuthFailureReason(int id, String reason)
+  public void setAuthFailureReason(Message reason)
   {
     if (DirectoryServer.returnBindErrorMessages())
     {
@@ -172,7 +166,7 @@
     }
     else
     {
-      bind.setAuthFailureReason(id, reason);
+      bind.setAuthFailureReason(reason);
     }
   }
 

--
Gitblit v1.10.0