In Files
- webrick/httpauth/userdb.rb
Methods
Class/Module Index
- Dir
- Errno
- Errno::ECONNABORTED
- Errno::ECONNRESET
- Errno::EPROTO
- File
- Object
- WEBrick
- WEBrick::AccessLog
- WEBrick::AccessLog::AccessLogError
- WEBrick::BasicLog
- WEBrick::CGI
- WEBrick::Config
- WEBrick::Config::OpenSSL
- WEBrick::Cookie
- WEBrick::Daemon
- WEBrick::GenericServer
- WEBrick::HTMLUtils
- WEBrick::HTTPAuth
- WEBrick::HTTPAuth::Authenticator
- WEBrick::HTTPAuth::BasicAuth
- WEBrick::HTTPAuth::DigestAuth
- WEBrick::HTTPAuth::Htdigest
- WEBrick::HTTPAuth::Htgroup
- WEBrick::HTTPAuth::Htpasswd
- WEBrick::HTTPAuth::ProxyAuthenticator
- WEBrick::HTTPAuth::ProxyBasicAuth
- WEBrick::HTTPAuth::ProxyDigestAuth
- WEBrick::HTTPAuth::UserDB
- WEBrick::HTTPProxyServer
- WEBrick::HTTPRequest
- WEBrick::HTTPResponse
- WEBrick::HTTPServer
- WEBrick::HTTPServerError
- WEBrick::HTTPServlet
- WEBrick::HTTPServlet::AbstractServlet
- WEBrick::HTTPServlet::CGIHandler
- WEBrick::HTTPServlet::DefaultFileHandler
- WEBrick::HTTPServlet::ERBHandler
- WEBrick::HTTPServlet::FileHandler
- WEBrick::HTTPServlet::HTTPServletError
- WEBrick::HTTPServlet::ProcHandler
- WEBrick::HTTPStatus
- WEBrick::HTTPStatus::ClientError
- WEBrick::HTTPStatus::EOFError
- WEBrick::HTTPStatus::Error
- WEBrick::HTTPStatus::Info
- WEBrick::HTTPStatus::Redirect
- WEBrick::HTTPStatus::ServerError
- WEBrick::HTTPStatus::Status
- WEBrick::HTTPStatus::Success
- WEBrick::HTTPUtils
- WEBrick::HTTPUtils::FormData
- WEBrick::HTTPVersion
- WEBrick::Log
- WEBrick::ServerError
- WEBrick::SimpleServer
- WEBrick::Utils
- WEBrick::Utils::TimeoutHandler
- WEBrick::Utils::TimeoutHandler::Thread
WEBrick::HTTPAuth::UserDB
User database mixin for HTTPAuth. This mixin dispatches user record access to the underlying #auth_type for this database.
Attributes
auth_type[RW]
The authentication type.
WEBrick::HTTPAuth::BasicAuth or WEBrick::HTTPAuth::DigestAuth are built-in.
Public Instance Methods
get_passwd(realm, user, reload_db=false)
Retrieves a password in realm
for user
for the #auth_type of this database.
reload_db
is a dummy value.
# File webrick/httpauth/userdb.rb, line 48 def get_passwd(realm, user, reload_db=false) make_passwd(realm, user, self[user]) end
make_passwd(realm, user, pass)
Creates an obscured password in realm
with user
and password
using the #auth_type of this database.
# File webrick/httpauth/userdb.rb, line 32 def make_passwd(realm, user, pass) @auth_type::make_passwd(realm, user, pass) end
set_passwd(realm, user, pass)
Sets a password in realm
with user
and
password
for the #auth_type of this database.
# File webrick/httpauth/userdb.rb, line 40 def set_passwd(realm, user, pass) self[user] = pass end