Module: WEBrick::HTTPAuth::UserDB
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
BasicAuth or DigestAuth.
Instance Method Summary collapse
- #get_passwd(realm, user, reload_db = false) ⇒ Object
- #make_passwd(realm, user, pass) ⇒ Object
- #set_passwd(realm, user, pass) ⇒ Object
Instance Attribute Details
#auth_type ⇒ Object
BasicAuth or DigestAuth
13 14 15 |
# File 'lib/webrick/httpauth/userdb.rb', line 13 def auth_type @auth_type end |
Instance Method Details
#get_passwd(realm, user, reload_db = false) ⇒ Object
23 24 25 26 |
# File 'lib/webrick/httpauth/userdb.rb', line 23 def get_passwd(realm, user, reload_db=false) # reload_db is dummy make_passwd(realm, user, self[user]) end |
#make_passwd(realm, user, pass) ⇒ Object
15 16 17 |
# File 'lib/webrick/httpauth/userdb.rb', line 15 def make_passwd(realm, user, pass) @auth_type::make_passwd(realm, user, pass) end |
#set_passwd(realm, user, pass) ⇒ Object
19 20 21 |
# File 'lib/webrick/httpauth/userdb.rb', line 19 def set_passwd(realm, user, pass) self[user] = pass end |