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/BindOperation.java | 19 +++++--------------
1 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/BindOperation.java b/opends/src/server/org/opends/server/core/BindOperation.java
index 03cf58b..8194635 100644
--- a/opends/src/server/org/opends/server/core/BindOperation.java
+++ b/opends/src/server/org/opends/server/core/BindOperation.java
@@ -25,6 +25,7 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.core;
+import org.opends.messages.Message;
import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.AuthenticationInfo;
@@ -34,6 +35,7 @@
import org.opends.server.types.Entry;
import org.opends.server.types.Operation;
+
/**
* This interface defines an operation that may be used to authenticate a user
* to the Directory Server. Note that for security restrictions, response
@@ -191,26 +193,15 @@
* @return A human-readable message providing the reason that the
* authentication failed, or <CODE>null</CODE> if none is available.
*/
- public abstract String getAuthFailureReason();
-
- /**
- * Retrieves the unique identifier for the authentication failure reason, if
- * available.
- *
- * @return The unique identifier for the authentication failure reason, or
- * zero if none is available.
- */
- public abstract int getAuthFailureID();
+ public abstract Message getAuthFailureReason();
/**
* Specifies the reason that the authentication failed.
*
- * @param id The unique identifier for the authentication failure
- * reason.
- * @param reason A human-readable message providing the reason that the
+ * @param message providing the reason that the
* authentication failed.
*/
- public abstract void setAuthFailureReason(int id, String reason);
+ public abstract void setAuthFailureReason(Message message);
/**
* Retrieves the user entry DN for this bind operation. It will only be
--
Gitblit v1.10.0