Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > webrick/httpauth/userdbライブラリ > WEBrick::HTTPAuth::UserDBモジュール

module WEBrick::HTTPAuth::UserDB

クラスの継承リスト: WEBrick::HTTPAuth::UserDB

要約

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth で使用しているモジュールです。

インスタンスメソッド

auth_type -> Class

WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。

auth_type=(type)

認証のタイプをセットします。

[PARAM] type:
WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを指定します。
get_passwd(realm, user, reload_db = false) -> String

与えられたレルムとユーザ名からパスワードのハッシュ値を取得して返します。

[PARAM] realm:
レルムを指定します。
[PARAM] user:
ユーザ名を指定します。
[PARAM] reload_db:
無視されます。
make_passwd(realm, user, pass) -> String

WEBrick::HTTPAuth::UserDB#auth_type の make_passwd を呼び出します。

[PARAM] realm:
レルムを指定します。
[PARAM] user:
ユーザ名を指定します。
[PARAM] pass:
パスワードを指定します。

[SEE_ALSO] WEBrick::HTTPAuth::BasicAuth#make_passwd, WEBrick::HTTPAuth::DigestAuth#make_passwd

set_passwd(realm, user, pass)

与えられた情報をもとに、パスワードをハッシュ化して保存します。

[PARAM] realm:
レルムを指定します。
[PARAM] user:
ユーザ名を指定します。
[PARAM] pass:
パスワードを指定します。
module WEBrick::HTTPAuth::UserDB