def has_entry?(username, realm)
      test_entry = DigestEntry.new(username, realm)
      @entries.has_key?(test_entry.key)
    end
def has_entry?(username, realm)
      test_entry = DigestEntry.new(username, realm)
      @entries.has_key?(test_entry.key)
    end
Public: Checks if the given username / realm combination exists

 username - the username to check
 realm    - the realm to check

 Examples

   digest_file.has_entry?("myuser", "myrealm")
   # => true

 Returns true or false if the username/realm combination is found.