849件ヒット
[801-849件を表示]
(0.057秒)
ライブラリ
- English (12)
- ビルトイン (36)
- etc (465)
-
net
/ ftp (48) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (48) -
webrick
/ httpauth / digestauth (24) -
webrick
/ httpauth / htdigest (48) -
webrick
/ httpauth / htpasswd (96) -
webrick
/ httpauth / userdb (36)
クラス
-
Etc
:: Group (24) -
Etc
:: Passwd (336) - File (12)
-
Net
:: FTP (48) - String (12)
-
WEBrick
:: HTTPAuth :: BasicAuth (36) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPAuth :: Htdigest (36) -
WEBrick
:: HTTPAuth :: Htpasswd (84)
モジュール
- Etc (84)
- FileTest (12)
- Kernel (12)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (36)
キーワード
-
$ DEFAULT _ INPUT (12) - BasicAuth (12)
- DigestAuth (12)
- Htdigest (12)
- Htpasswd (12)
- Passwd (21)
- age (12)
- age= (12)
- change (12)
- change= (12)
- comment (12)
- comment= (12)
- crypt (12)
-
delete
_ passwd (24) - dir (12)
- dir= (12)
- each (36)
- endpwent (12)
- expire (12)
- expire= (12)
- flush (12)
- gecos (12)
- gecos= (12)
-
get
_ passwd (36) - getpwent (12)
- getpwnam (12)
- getpwuid (12)
- gid (12)
- gid= (12)
- login (12)
-
make
_ passwd (36) - name (12)
- name= (12)
- new (36)
- open (24)
- passwd= (24)
- quota (12)
- quota= (12)
- reload (12)
-
set
_ passwd (36) - setpwent (12)
- shell (12)
- shell= (12)
- uclass (12)
- uclass= (12)
- uid (12)
- uid= (12)
- userdb (24)
-
webrick
/ httpauth / htpasswd (12) -
world
_ readable? (24) - 制御構造 (12)
検索結果
先頭5件
-
WEBrick
:: HTTPAuth :: Htdigest (3018.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 :: BasicAuth (3006.0) -
HTTP の Basic 認証のためのクラスです。
...TP の Basic 認証のためのクラスです。
例
require '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', 'supersecretp......ass')
authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserDB => 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 :: DigestAuth (3006.0) -
HTTP の Digest 認証のためのクラスです。
...HTTP の Digest 認証のためのクラスです。
2617 も参照してください。
例:
require 'webrick'
config = { :Realm => 'DigestAuth example realm' }
htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htdigest.set_passwd config[:Realm], 'username', 'password'
htdi......gest.flush
config[:UserDB] = htdigest
digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
サーブレットの initialize メソッドの中でこのクラスのインスタンスを作成
しないようにしてください。デフォルトでは WEBrick はリクエストのたびに......サー
ブレットのインスタンスを生成しますが、
WEBrick::HTTPAuth::DigestAuth のオブジェクトはリクエストをまたい
で利用しなければならないためです。... -
File
. world _ readable?(path) -> Integer | nil (106.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...
path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェク......トを指定します。
//emlist[例][ruby]{
m = File.world_readable?("/etc/passwd")
"%o" % m # => "644"
//}... -
FileTest
. # world _ readable?(path) -> Integer | nil (106.0) -
path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...
path が全てのユーザから読めるならばそのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列を指定します。......m = FileTest.world_readable?("/etc/passwd")
"%o" % m # => "644"...