internal bool IsValid(string password, string realm, string method, string entity)
        {
            NameValueCollection nameValueCollection = new NameValueCollection(this._params);

            nameValueCollection["password"] = password;
            nameValueCollection["realm"]    = realm;
            nameValueCollection["method"]   = method;
            nameValueCollection["entity"]   = entity;
            return(this._params["response"] == HttpUtility.CreateRequestDigest(nameValueCollection));
        }
        internal bool IsValid(
            string password, string realm, string method, string entity)
        {
            var parameters = new NameValueCollection(_params);

            parameters ["password"] = password;
            parameters ["realm"]    = realm;
            parameters ["method"]   = method;
            parameters ["entity"]   = entity;

            return(_params ["response"] == HttpUtility.CreateRequestDigest(parameters));
        }