るりまサーチ

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

別のキーワード

  1. openssl new
  2. _builtin new
  3. rexml/document new
  4. resolv new
  5. socket new

検索結果

WEBrick::HTTPAuth::Htdigest.new(path) -> WEBrick::HTTPAuth::Htdigest (21218.0)

Htdigest オブジェクトを生成します。

...Htdigest オブジェクトを生成します。

@param path パスワードを保存するファイルのパスを与えます。...

WEBrick::HTTPAuth::Htdigest (18052.0)

Apache の htdigest 互換のクラス。

...Apache の htdigest 互換のクラス。



require 'webrick'
include WEBrick
htd = HTTPAuth::Htdigest.new('dot.htdigest')
htd.set_passwd('realm', 'username', 'supersecretpass')
htd.flush
htd2 = HTTPAuth::Htdigest.new('dot.htdigest')
p htd2.get_passwd('realm', 'username', false) == '65fe0...

WEBrick::HTTPAuth::DigestAuth (42.0)

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

...:Realm => '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

サーブレットの initial...