public bool Parse(string challenge)
        {
            parser = new AuthDigestHeaderParser(challenge);
            if (!parser.Parse())
            {
                return(false);
            }

            // build the hash object (only MD5 is defined in RFC2617)
            if ((parser.Algorithm == null) || (parser.Algorithm.StartsWith("MD5", StringComparison.OrdinalIgnoreCase)))
            {
                hash = MD5.Create();
            }

            return(true);
        }
        public bool Parse(string challenge)
        {
            parser = new AuthDigestHeaderParser (challenge);
            if (!parser.Parse ())
                return false;

            // build the hash object (only MD5 is defined in RFC2617)
            if ((parser.Algorithm == null) || (parser.Algorithm.StartsWith ("MD5", StringComparison.OrdinalIgnoreCase)))
                hash = MD5.Create ();

            return true;
        }