393件ヒット
[1-100件を表示]
(0.029秒)
別のキーワード
ライブラリ
- ビルトイン (69)
-
net
/ imap (108) - open-uri (24)
- openssl (36)
- socket (72)
-
webrick
/ httpauth (24) -
webrick
/ httpauth / basicauth (12) -
webrick
/ httpproxy (12)
クラス
- Array (21)
- BasicObject (36)
- BasicSocket (72)
-
Net
:: IMAP :: BodyTypeBasic (84) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeMultipart (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: OCSP :: Response (12) - String (12)
-
WEBrick
:: HTTPProxyServer (12)
モジュール
- OpenURI (24)
-
WEBrick
:: HTTPAuth (24)
キーワード
- BasicAuth (12)
- OCSP (12)
-
basic
_ auth (12) - body (12)
-
connect
_ address (12) -
content
_ id (12) - description (12)
- disposition (12)
-
do
_ not _ reverse _ lookup (12) - extension (12)
- getpeereid (12)
-
instance
_ eval (24) -
instance
_ exec (12) - language (12)
-
local
_ address (12) - md5 (12)
-
net
/ http (12) - new (12)
-
open
_ uri (24) - pack (21)
- pack テンプレート文字列 (12)
- param (12)
- parts (12)
-
proxy
_ basic _ auth (12) - recvmsg (12)
-
remote
_ address (12) -
ruby 1
. 8 . 3 feature (12) - status (12)
- unpack (12)
検索結果
先頭5件
- OpenSSL
:: OCSP :: Response # basic -> OpenSSL :: OCSP :: BasicResponse | nil - WEBrick
:: HTTPAuth . # basic _ auth(req , res , realm) {|user , pass| . . . } -> nil - WEBrick
:: HTTPAuth . # proxy _ basic _ auth(req , res , realm) {|user , pass| . . . } -> nil - WEBrick
:: HTTPAuth :: BasicAuth - OpenSSL
:: OCSP :: BasicResponse # status -> [[OpenSSL :: OCSP :: CertificateId , Integer , Integer , Time|nil , Time , Time|nil , [OpenSSL :: X509 :: Extension]]]
-
OpenSSL
:: OCSP :: Response # basic -> OpenSSL :: OCSP :: BasicResponse | nil (18302.0) -
Response オブジェクトが保持している BasicResponse オブジェクトを 返します。
...Response オブジェクトが保持している BasicResponse オブジェクトを
返します。
@see OpenSSL::OCSP::BasicResponse... -
WEBrick
:: HTTPAuth . # basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (6242.0) -
Basic 認証を行うためのメソッドです。
...
Basic 認証を行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価結果が偽......ck::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。
require 'webrick'
srv.mount_proc('/basic_auth') {|req, res|
HTTPAuth.basic_auth(req, res, "WEBrick's realm") {|user, pass|
user == 'webrick' && pass == 'supersecretpassword'
}
res.body = "hoge"
}... -
WEBrick
:: HTTPAuth . # proxy _ basic _ auth(req , res , realm) {|user , pass| . . . } -> nil (6218.0) -
プロクシの Basic 認証行うためのメソッドです。
...プロクシの Basic 認証行うためのメソッドです。
与えられたブロックは user, pass をブロックパラメータとして渡されて評価されます。
ブロックの評価結果が真である場合、認証が成功したことになります。
ブロックの評価... -
WEBrick
:: HTTPAuth :: BasicAuth (6034.0) -
HTTP の Basic 認証のためのクラスです。
...HTTP の 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', 'supersecre......tpass')
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... -
OpenSSL
:: OCSP :: BasicResponse # status -> [[OpenSSL :: OCSP :: CertificateId , Integer , Integer , Time|nil , Time , Time|nil , [OpenSSL :: X509 :: Extension]]] (3208.0) -
証明書の状態の問い合わせの結果を返します。
...の配列が渡されます。
結果をどのように解釈すべきか、より詳しくは 2560 や X.509 を見てください。
例:
res.basic.status
# => [
# [#<OpenSSL::OCSP::CertificateId:0x00000000e3c290>, # certificate ID
# 0,... -
Net
:: IMAP :: BodyTypeBasic # language -> String | [String] | nil (3202.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
BasicObject
# instance _ exec(*args) {|*vars| . . . } -> object (3107.0) -
与えられたブロックをレシーバのコンテキストで実行します。
...タに渡す値です。
//emlist[例][ruby]{
class KlassWithSecret
def initialize
@secret = 99
end
end
k = KlassWithSecret.new
# 以下で x には 5 が渡される
k.instance_exec(5) {|x| @secret + x } #=> 104
//}
@see Module#class_exec, Module#module_exec, BasicObject#instance_eval... -
BasicObject
# instance _ eval {|obj| . . . } -> object (3101.0) -
オブジェクトのコンテキストで文字列 expr またはオブジェクト自身をブロックパラメータとするブロックを 評価してその結果を返します。
...メソッドが定義されます。これはメソッド定義のネストと同じです。
d:spec/def#nest_method を参照してください。
BasicObject を継承して作ったクラス内で instance_eval する場合はトップレベルの定数や Kernel モジュールに定義され......imeError)
//}
//emlist[例][ruby]{
class Bar < BasicObject
def call1
instance_eval("::ENV.class")
end
def call2
instance_eval("ENV.class")
end
end
bar = Bar.new
bar.call1 # => Object
bar.call2 # raise NameError
//}
@see Module#module_eval, Kernel.#eval, BasicObject#instance_exec... -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (3101.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045