src/Foundation/Net/Gimela.Net.Http/Authentication/DigestAuthentication.cs
/// <summary>
/// determines if the nonce is valid or has expired.
/// </summary>
/// <param name="nonce">nonce value (check wikipedia for info)</param>
/// <returns><c>true</c> if the nonce has not expired.</returns>
determines if the nonce is valid or has expired.
determines if the nonce is valid or has expired .
protected virtual bool IsValidNonce(string nonce)
    {
      lock (_nonces)
      {
        if (_nonces.ContainsKey(nonce))
        {
          if (_nonces[nonce] < DateTime.Now)
          {
            _nonces.Remove(nonce);
            return false;
          }
          return true;
        }
      }
      return false;
    }
protected virtual bool IsValidNonce ( string nonce ) { lock ( _nonces ) { if ( _nonces . ContainsKey ( nonce ) ) { if ( _nonces [ nonce ] < DateTime . Now ) { _nonces . Remove ( nonce ) ; return false ; } return true ; } } return false ; }
determines if the nonce is valid or has expired.
determines if the nonce is valid or has expired .
None
nonce
string
nonce value (check wikipedia for info)
nonce value ( check wikipedia for info )