Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > 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)

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

get_passwd(realm, user, reload_db = false) -> String

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

make_passwd(realm, user, pass) -> String

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

set_passwd(realm, user, pass)

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