net\System\Net\_DigestClient.cs (53)
82digestChallenge = HttpDigest.Interpret(challenge, index, httpWebRequest);
121Authorization digestResponse = HttpDigest.Authenticate(digestChallenge, NC, spnToken.Spn, binding);
164index = challenge.QualityOfProtection.IndexOf(HttpDigest.SupportedQuality, index);
169if ((index==0 || HttpDigest.ValidSeparator.IndexOf(challenge.QualityOfProtection[index - 1])>=0) &&
170(index+HttpDigest.SupportedQuality.Length==challenge.QualityOfProtection.Length || HttpDigest.ValidSeparator.IndexOf(challenge.QualityOfProtection[index + HttpDigest.SupportedQuality.Length])>=0) ) {
173index += HttpDigest.SupportedQuality.Length;
236HttpDigestChallenge digestChallenge = HttpDigest.Interpret(challenge, index, httpWebRequest);
381HttpDigestChallenge digestChallenge = HttpDigest.Interpret(incoming, -1, httpWebRequest);
505value = HttpDigest.unquote(incoming.Substring(offset+1));
508value = HttpDigest.unquote(incoming.Substring(offset+1, index-offset-1));
582if (name.Equals(HttpDigest.DA_algorithm)) {
585else if (name.Equals(HttpDigest.DA_cnonce)) {
588else if (name.Equals(HttpDigest.DA_nc)) {
591else if (name.Equals(HttpDigest.DA_nonce)) {
594else if (name.Equals(HttpDigest.DA_opaque)) {
597else if (name.Equals(HttpDigest.DA_qop)) {
601else if (name.Equals(HttpDigest.DA_realm)) {
604else if (name.Equals(HttpDigest.DA_domain)) {
607else if (name.Equals(HttpDigest.DA_response)) {
609else if (name.Equals(HttpDigest.DA_stale)) {
612else if (name.Equals(HttpDigest.DA_uri)) {
615else if (name.Equals(HttpDigest.DA_charset)) {
618else if (name.Equals(HttpDigest.DA_cipher)) {
621else if (name.Equals(HttpDigest.DA_username)) {
636stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_realm, Realm, true));
639stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_algorithm, Algorithm, true));
643stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_charset, Charset, false));
647stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_nonce, Nonce, true));
651stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_uri, Uri, true));
655stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_cnonce, ClientNonce, true));
659stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_nc, NonceCount.ToString("x8", NumberFormatInfo.InvariantInfo), true));
663stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_qop, QualityOfProtection, true));
667stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_opaque, Opaque, true));
671stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_domain, Domain, true));
675stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_stale, "true", true));
758if (Logging.On) Logging.PrintWarning(Logging.Web, typeof(HttpDigest), "ReadSuppressExtendedProtectionRegistryValue", e.Message);
761if (Logging.On) Logging.PrintWarning(Logging.Web, typeof(HttpDigest), "ReadSuppressExtendedProtectionRegistryValue", e.Message);
766if (Logging.On) Logging.PrintWarning(Logging.Web, typeof(HttpDigest), "ReadSuppressExtendedProtectionRegistryValue", e.Message);
769if (Logging.On) Logging.PrintWarning(Logging.Web, typeof(HttpDigest), "ReadSuppressExtendedProtectionRegistryValue", e.Message);
1051string responseValue = HttpDigest.responseValue(digestChallenge, username, password);