type=class
superclass=Object
included=WEBrick=HTTPAuth=Authenticator
extended=
library=webrick.httpauth.digestauth
aliases=
aliasof=

HTTP の Digest 認証のためのクラスです。

[[RFC:2617]] も参照してください。

例:
  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

サーブレットの initialize メソッドの中でこのクラスのインスタンスを作成
しないようにしてください。デフォルトでは WEBrick はリクエストのたびにサー
ブレットのインスタンスを生成しますが、
[[c:WEBrick::HTTPAuth::DigestAuth]] のオブジェクトはリクエストをまたい
で利用しなければならないためです。
