Module: WEBrick::HTTPAuth::UserDB (Ruby 2.4.2)
Description: Module : WEBrick::HTTPAuth::UserDB - Ruby 2.4.2

Support for the Ruby 2.4 series has ended. See here for reference.

### Home Classes Methods

### In Files

- webrick/httpauth/userdb.rb

### Methods

- #get_passwd
- #make_passwd
- #set_passwd

### Class/Module Index

Quicksearch

- Errno
- Errno::ECONNABORTED
- Errno::ECONNRESET
- Errno::EPROTO
- Object
- WEBrick
- WEBrick::AccessLog
- WEBrick::AccessLog::AccessLogError
- WEBrick::BasicLog
- WEBrick::CGI
- WEBrick::Config
- 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

No matching classes.

# 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) click to toggle source

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) click to toggle source

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) click to toggle source

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