public static function buildAuthString(array $data)
    {
        $str = array();

        foreach ($data as $k => $v) {
            $str[] = self::urlEncode($k) . '="' . self::urlEncode($v) . '"';
        }

        return implode(', ', $str);
    }