From db0343719a4a9c715a199ea562706b298720704c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 21 Sep 2006 14:56:09 +0000
Subject: [PATCH] Make three changes to code relating to password policy and storage schemes:

---
 opends/src/server/org/opends/server/api/PasswordStorageScheme.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/PasswordStorageScheme.java b/opends/src/server/org/opends/server/api/PasswordStorageScheme.java
index 1a918db..a4ab549 100644
--- a/opends/src/server/org/opends/server/api/PasswordStorageScheme.java
+++ b/opends/src/server/org/opends/server/api/PasswordStorageScheme.java
@@ -277,6 +277,30 @@
 
 
   /**
+   * Retrieves the original plaintext value for the provided password
+   * stored in the authPassword syntax.  Note that this should only be
+   * called if <CODE>isReversible</CODE> returns <CODE>true</CODE>.
+   *
+   * @param  authInfo   The authInfo component of the password encoded
+   *                    in the authentication password syntax.
+   * @param  authValue  The authValue component of the password
+   *                    encoded in the authentication password syntax.
+   *
+   * @return  The plaintext value for the provided stored password.
+   *
+   * @throws  DirectoryException  If it is not possible to obtain the
+   *                              plaintext value for the provided
+   *                              stored password, or if this storage
+   *                              scheme does not support the
+   *                              authPassword syntax..
+   */
+  public abstract ByteString getAuthPasswordPlaintextValue(
+                                  String authInfo, String authValue)
+         throws DirectoryException;
+
+
+
+  /**
    * Indicates whether this password storage scheme should be
    * considered "secure".  If the encoding used for this scheme does
    * not obscure the value at all, or if it uses a method that is

--
Gitblit v1.10.0