Module: WEBrick::HTTPAuth::UserDB

Included in:
Htdigest, Htpasswd
Defined in:
lib/webrick/httpauth/userdb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auth_typeObject

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