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

neil_a_wilson
07.57.2006 047432559933543c058e5dd40250dbcd47d06c67
opendj-sdk/opends/src/server/org/opends/server/extensions/SaltedSHA256PasswordStorageScheme.java
@@ -37,8 +37,8 @@
import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
import org.opends.server.core.DirectoryServer;
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.ErrorLogCategory;
import org.opends.server.types.ErrorLogSeverity;
@@ -208,7 +208,7 @@
    System.arraycopy(saltBytes, 0, hashPlusSalt, digestBytes.length,
                     NUM_SALT_BYTES);
    return new ASN1OctetString(Base64.encode(hashPlusSalt));
    return ByteStringFactory.create(Base64.encode(hashPlusSalt));
  }
@@ -272,7 +272,7 @@
                     NUM_SALT_BYTES);
    buffer.append(Base64.encode(hashPlusSalt));
    return new ASN1OctetString(buffer.toString());
    return ByteStringFactory.create(buffer.toString());
  }
@@ -429,7 +429,7 @@
    authPWValue.append('$');
    authPWValue.append(Base64.encode(digestBytes));
    return new ASN1OctetString(authPWValue.toString());
    return ByteStringFactory.create(authPWValue.toString());
  }