Exemplo n.º 1
0
        public DigestAuthHeaderValue(HttpListenerContext context)
        {
            var headerValue = context.Request.Headers["Authorization"];

            _components           = DigestCalculator.ParseIntoComponents(headerValue);
            _components["method"] = context.Request.HttpMethod;
        }
Exemplo n.º 2
0
        private void CalculateResponse(CouchbaseLiteServiceListener listener)
        {
            if (!String.IsNullOrEmpty(_calculatedResponse))
            {
                return;
            }

            _calculatedResponse = DigestCalculator.Calculate(_components, listener.HashPasswordToDigest);
        }