るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.031秒)
トップページ > クエリ:userdb[x] > クエリ:set_passwd[x]

別のキーワード

  1. stringio set_encoding
  2. _builtin set_encoding
  3. tracer set_get_line_procs
  4. set new
  5. openssl set

検索結果

WEBrick::HTTPAuth::UserDB#set_passwd(realm, user, pass) (21101.0)

与えられた情報をもとに、パスワードをハッシュ化して保存します。

与えられた情報をもとに、パスワードをハッシュ化して保存します。

@param realm レルムを指定します。

@param user ユーザ名を指定します。

@param pass パスワードを指定します。

WEBrick::HTTPAuth::BasicAuth (12.0)

HTTP の Basic 認証のためのクラスです。

...7.0.0.1', :Port => 10080})

htpd = WEBrick::HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')

authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserDB => htpd, :Realm => realm)
srv.mount_proc('/basic_auth') {|req, res|
authenticator.aut...

WEBrick::HTTPAuth::DigestAuth (12.0)

HTTP の Digest 認証のためのクラスです。

...=> 'DigestAuth example realm' }

htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htdigest.set_passwd config[:Realm], 'username', 'password'
htdigest.flush

config[:UserDB] = htdigest

digest_auth = WEBrick::HTTPAuth::DigestAuth.new config

サーブレットの initialize メ...