private void initAsDigest() { var qops = _params ["qop"]; if (qops != null) { var qop = "auth"; if (contains(qops.Split(','), qop)) { _params ["qop"] = qop; _params ["nc"] = String.Format("{0:x8}", ++_nonceCount); _params ["cnonce"] = HttpUtility.CreateNonceValue(); } else { _params ["qop"] = null; } } _params ["method"] = "GET"; _params ["response"] = HttpUtility.CreateRequestDigest(_params); }
private void initAsDigest() { string text = this._params["qop"]; if (text != null) { string text2 = "auth"; if (AuthenticationResponse.contains(text.Split(new char[] { ',' }), text2)) { this._params["qop"] = text2; this._params["nc"] = string.Format("{0:x8}", this._nonceCount += 1u); this._params["cnonce"] = HttpUtility.CreateNonceValue(); } else { this._params["qop"] = null; } } this._params["method"] = "GET"; this._params["response"] = HttpUtility.CreateRequestDigest(this._params); }