Module: WEBrick::HTTPAuth::UserDB

Defined in:
lib/webrick/httpauth/userdb.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) auth_type

BasicAuth or DigestAuth



13
14
15
# File 'lib/webrick/httpauth/userdb.rb', line 13

def auth_type
  @auth_type
end

Instance Method Details

- (Object) get_passwd(realm, user, reload_db = false)



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

- (Object) make_passwd(realm, user, pass)



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

- (Object) set_passwd(realm, user, pass)



19
20
21
# File 'lib/webrick/httpauth/userdb.rb', line 19

def set_passwd(realm, user, pass)
  self[user] = pass
end