public function createConsumer($name, $key = false, $secret = false)
    {
        /* scan through existing consumers to be sure we're not creating a duplicate */
        $consumers = $this->getConsumers();
        $consumerExists = false;
        foreach ($consumers as $consumer) {
            if ($consumer->name == $name) {
                $consumerExists = true;
                break;
            }
        }

        if (!$consumerExists) {
            $consumer = new LTI_Tool_Consumer(
                ($key ? $key : hash('md5', 'key' . time())),
                $this->data_connector,
                true
            );
            $consumer->name = $name;
            $consumer->secret = ($secret ? $secret : hash('md5', 'secret' . time()));
            $consumer->save();
            return true;
        }
        return false;
    }