ri > WEBrick::HTTPAuth::DigestAuth

= WEBrick::HTTPAuth::DigestAuth < Object

------------------------------------------------------------------------
= Includes:
Authenticator (from /home/chedong/.local/share/rdoc)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
RFC 2617 Digest Access Authentication for WEBrick

Use this class to add digest authentication to a WEBrick servlet.

Here is an example of how to set up DigestAuth:

  config = { :Realm => 'DigestAuth example realm' }

  htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
  htdigest.set_passwd config[:Realm], 'username', 'password'
  htdigest.flush

  config[:UserDB] = htdigest

  digest_auth = WEBrick::HTTPAuth::DigestAuth.new config

When using this as with a servlet be sure not to create a new DigestAuth
object in the servlet's #initialize.  By default WEBrick creates a new
servlet instance for every request and the DigestAuth object must be
used across requests.
------------------------------------------------------------------------
= Class methods:

  make_passwd
  new

= Instance methods:

  algorithm
  authenticate
  challenge
  qop

= Attributes:

  attr_reader algorithm
  attr_reader qop

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 07:47 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!