mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/schema/AuthPasswordEqualityMatchingRule.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.schema;
@@ -42,7 +42,9 @@
import org.opends.server.types.DirectoryException;
import org.opends.server.types.InitializationException;
import static org.opends.server.loggers.Debug.*;
import static org.opends.server.loggers.debug.DebugLogger.debugCought;
import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
import org.opends.server.types.DebugLogLevel;
import static org.opends.server.schema.SchemaConstants.*;
@@ -54,11 +56,6 @@
public class AuthPasswordEqualityMatchingRule
       extends EqualityMatchingRule
{
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
       "org.opends.server.schema.AuthPasswordEqualityMatchingRule";
@@ -69,7 +66,7 @@
  {
    super();
    assert debugConstructor(CLASS_NAME);
  }
@@ -91,8 +88,6 @@
  public void initializeMatchingRule(ConfigEntry configEntry)
         throws ConfigException, InitializationException
  {
    assert debugEnter(CLASS_NAME, "initializeMatchingRule",
                      String.valueOf(configEntry));
    // No initialization is required.
  }
@@ -107,7 +102,6 @@
   */
  public String getName()
  {
    assert debugEnter(CLASS_NAME, "getName");
    return EMR_AUTH_PASSWORD_NAME;
  }
@@ -121,7 +115,6 @@
   */
  public String getOID()
  {
    assert debugEnter(CLASS_NAME, "getOID");
    return EMR_AUTH_PASSWORD_OID;
  }
@@ -136,7 +129,6 @@
   */
  public String getDescription()
  {
    assert debugEnter(CLASS_NAME, "getDescription");
    // There is no standard description for this matching rule.
    return EMR_AUTH_PASSWORD_DESCRIPTION;
@@ -152,7 +144,6 @@
   */
  public String getSyntaxOID()
  {
    assert debugEnter(CLASS_NAME, "getSyntaxOID");
    return SYNTAX_AUTH_PASSWORD_OID;
  }
@@ -173,7 +164,6 @@
  public ByteString normalizeValue(ByteString value)
         throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "normalizeValue", String.valueOf(value));
    // We will not alter the value in any way, but we'll create a new value
@@ -199,8 +189,6 @@
   */
  public boolean areEqual(ByteString value1, ByteString value2)
  {
    assert debugEnter(CLASS_NAME, "areEqual", String.valueOf(value1),
                      String.valueOf(value2));
    // Since the values are already normalized, we just need to compare the
    // associated byte arrays.
@@ -227,9 +215,6 @@
  public ConditionResult valuesMatch(ByteString attributeValue,
                                     ByteString assertionValue)
  {
    assert debugEnter(CLASS_NAME, "valuesMatch",
                      String.valueOf(attributeValue),
                      String.valueOf(assertionValue));
    // We must be able to decode the attribute value using the authentication
@@ -242,7 +227,10 @@
    }
    catch (Exception e)
    {
      assert debugException(CLASS_NAME, "valuesMatch", e);
      if (debugEnabled())
      {
        debugCought(DebugLogLevel.ERROR, e);
      }
      return ConditionResult.FALSE;
    }
@@ -291,8 +279,6 @@
   */
  public int generateHashCode(AttributeValue attributeValue)
  {
    assert debugEnter(CLASS_NAME, "generateHashCode",
                      String.valueOf(attributeValue));
    // Because of the variable encoding that may be used, we have no way of