るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.153秒)

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::pkey::ec::group
  4. new openssl::x509::certificate
  5. start net::smtp

モジュール

キーワード

検索結果

WEBrick::HTTPAuth::BasicAuth#realm -> String (39117.0)

realm を文字列で返します。

...
realm
を文字列で返します。...

WEBrick::HTTPAuth::BasicAuth (23030.0)

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

...e 'webrick'
realm
= "WEBrick's realm"
srv = WEBrick::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})

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

authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserD...
...B => htpd, :Realm => realm)
srv.mount_proc('/basic_auth') {|req, res|
authenticator.authenticate(req, res)
res.body = "hoge"
}
srv.start # http://127.0.0.1:10080/basic_auth...

WEBrick::HTTPAuth::BasicAuth.new(config, default = Config::BasicAuth) -> WEBrick::HTTPAuth::BasicAuth (21119.0)

BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。

...ハッシュです。

config で有効なハッシュキーは以下の通りです。

:Realm =>
:UserDB =>
:Logger =>
:AutoReloadUserDB =>

realm
を表す文字列 :Realm には与えます。:UserDB
には WEBrick::HTTPAuth::Htpasswd オブジェクトを与...

WEBrick::HTTPAuth::BasicAuth.make_passwd(realm, user, pass) -> String (21107.0)

pass をランダムなソルトで crypt した文字列を返します。

...pass をランダムなソルトで crypt した文字列を返します。

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

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

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

WEBrick::HTTPAuth::UserDB#make_passwd(realm, user, pass) -> String (113.0)

WEBrick::HTTPAuth::UserDB#auth_type の make_passwd を呼び出します。

...TTPAuth::UserDB#auth_type の make_passwd を呼び出します。

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

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

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

@see WEBrick::HTTPAuth::BasicAuth#make_passwd, WEBrick::HTTPAuth::DigestAuth#make_passwd...

絞り込み条件を変える