code: public static boolean changePassword(String userName, String newPassword) {
          LOGGER.entering(userName, newPassword.replaceAll(".", "*"));
          boolean changeSucceeded = false;
          File authFile = new File(AUTH_FILE_LOCATION);
          try {
              authFile.delete();
              authFile.createNewFile();
              createAuthFile(authFile, userName, newPassword);
              changeSucceeded = true;
          } catch (Exception e) {
              changeSucceeded = false;
          }
          LOGGER.exiting(changeSucceeded);
          return changeSucceeded;
      }
docs: Changes the password for the given user to the new password
  
  @param userName
  @param newPassword
  @return <code>true</code> if the password was successfully changed.