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

neil_a_wilson
07.57.2006 047432559933543c058e5dd40250dbcd47d06c67
opendj-sdk/opends/src/server/org/opends/server/extensions/RandomPasswordGenerator.java
@@ -42,7 +42,8 @@
import org.opends.server.config.ConfigException;
import org.opends.server.config.StringConfigAttribute;
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.ConfigChangeResult;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.DN;
@@ -297,7 +298,7 @@
   * @throws  DirectoryException  If a problem occurs while attempting to
   *                              generate the password.
   */
  public ASN1OctetString generatePassword(Entry userEntry)
  public ByteString generatePassword(Entry userEntry)
         throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "generatePassword",
@@ -320,7 +321,7 @@
      generatorLock.unlock();
    }
    return new ASN1OctetString(buffer.toString());
    return ByteStringFactory.create(buffer.toString());
  }