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

jvergara
09.47.2009 7f207072519d5a4551dc943791cf23fef968cae7
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java
@@ -657,12 +657,18 @@
  protected List<String> getObfuscatedCommandLineArguments(
      List<String> clearArgs)
  {
    String[] toObfuscate = {"--bindPassword", "--currentPassword",
        "--newPassword"};
    ArrayList<String> args = new ArrayList<String>(clearArgs);
    for (int i=1; i<args.size(); i++)
    {
      if (args.get(i-1).equalsIgnoreCase("--bindPassword"))
      for (String argName : toObfuscate)
      {
        args.set(i, Utilities.OBFUSCATED_VALUE);
        if (args.get(i-1).equalsIgnoreCase(argName))
        {
          args.set(i, Utilities.OBFUSCATED_VALUE);
          break;
        }
      }
    }
    return args;