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

neil_a_wilson
07.57.2006 047432559933543c058e5dd40250dbcd47d06c67
opendj-sdk/opends/src/server/org/opends/server/extensions/Base64PasswordStorageScheme.java
@@ -31,8 +31,8 @@
import org.opends.server.api.PasswordStorageScheme;
import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.ByteString;
import org.opends.server.types.ByteStringFactory;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.InitializationException;
import org.opends.server.types.ResultCode;
@@ -114,7 +114,7 @@
  {
    assert debugEnter(CLASS_NAME, "encodePassword", "ByteString");
    return new ASN1OctetString(Base64.encode(plaintext.value()));
    return ByteStringFactory.create(Base64.encode(plaintext.value()));
  }
@@ -135,7 +135,7 @@
    buffer.append('}');
    buffer.append(Base64.encode(plaintext.value()));
    return new ASN1OctetString(buffer.toString());
    return ByteStringFactory.create(buffer.toString());
  }
@@ -184,7 +184,8 @@
    try
    {
      return new ASN1OctetString(Base64.decode(storedPassword.stringValue()));
      return ByteStringFactory.create(Base64.decode(
                                           storedPassword.stringValue()));
    }
    catch (Exception e)
    {