るりまサーチ

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

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl to_s
  5. openssl hexdigest

検索結果

<< 1 2 > >>

OpenSSL::X509::Name.parse(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (35339.0)

文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

...パースして OpenSSL::X509::Name オブジェクトを返します。

例:
require 'openssl'
OpenSSL
::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')

@param str パースする文字列
@param template 属性型に...

OpenSSL::Config.parse(str) -> OpenSSL::Config (35318.0)

文字列から OpenSSL::Config オブジェクトを生成します。

...文字列から OpenSSL::Config オブジェクトを生成します。

@param str 設定ファイルデータ...

OpenSSL::X509::Name.parse_openssl(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (26439.0)

文字列をパースして OpenSSL::X509::Name オブジェクトを返します。

...パースして OpenSSL::X509::Name オブジェクトを返します。

例:
require 'openssl'
OpenSSL
::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')

@param str パースする文字列
@param template 属性型に...

OpenSSL::X509::Name.parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (23318.0)

RFC2253形式の文字列を パースして OpenSSL::X509::Name オブジェクトを返します。

...RFC2253形式の文字列を
パースして OpenSSL::X509::Name オブジェクトを返します。

@param str パースする文字列
@param template 属性型に対応するデータ型を表わすハッシュ...

OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE -> Integer (20124.0)

属性値のデフォルトの ASN.1 の型です。

...属性値のデフォルトの ASN.1 の型です。

OpenSSL
::X509::Name.parse OpenSSL::X509::Name.new で
template に指定されなかった属性はこの型であると仮定して処理されます。

OpenSSL
::ASN1::UTF8STRING を返します。...

絞り込み条件を変える

OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE -> { String => Integer } (20118.0)

属性型に対応する ASN.1の型を格納したハッシュです。

...属性型に対応する ASN.1の型を格納したハッシュです。

OpenSSL
::X509::Name.parse OpenSSL::X509::Name.new
などでデフォルト値として使われます。

キーは属性型文字列で、ASN.1の型を表わす整数が対応します。

以下の文字列がキーで...
...す。
'C', 'countryName', 'serialNumber', 'dnQualifier',
'DC', 'domainComponent', 'emailAddress'...

OpenSSL::X509::Name#to_s(flags=nil) -> String (14066.0)

DNの文字列表現を返します。

...* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE

*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')...
...# => "/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::COMPAT)
# => "C=JP, ST=Kanagawa, L=Yokohama, O=Example Company, OU=Lab3, CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::...
...ss=foobar@lab3.example.co.jp,CN=foobar,OU=Lab3,O=Example Company,L=Yokohama,ST=Kanagawa,C=JP"
n.to_s(OpenSSL::X509::Name::ONELINE)
# => "C = JP, ST = Kanagawa, L = Yokohama, O = Example Company, OU = Lab3, CN = foobar, emailAddress = foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MULTI...

OpenSSL::X509::Name#to_a -> [[String, String, Integer]] (14024.0)

内容を配列にして返します。

...(OpenSSL::ASN1以下の各定数で定義されているASN1の型)] という3要素の配列です。

例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')
n.to_a
# => [["C", "JP", 19...
...], ["ST", "Kanagawa", 12], ["L", "Yokohama", 12], ["O", "Example Company", 12], ["OU", "Lab3", 12], ["CN", "foobar", 12], ["emailAddress", "foobar@lab3.example.co.jp", 22]]...

OptionParser (12036.0)

コマンドラインのオプションを取り扱うためのクラスです。

...ロックを
OptionParser#on メソッドで登録していきます。
つまり、OptionParser を使う場合、基本的には

(1) OptionParser オブジェクト opt を生成する。
(2) オプションを取り扱うブロックを opt に登録する。
(3) opt.parse(ARGV) でコマ...
... parse する。

というような流れになります。

//emlist[][ruby]{
require "optparse"
P
rogramConfig = Hash.new
opts = OptionParser.new
opts.on("-a"){|v| ProgramConfig[:a] = true } # オプション「-a」がコマンドラインで指定されていた場合の動作。
opts.parse!(...
...、そのクラスおよびモジュールで定義されている定数「Version」および「Release」を表示して、終了します。
//emlist{
$ ruby t.rb --version=OptionParser,URI,OpenSSL
t: OptionParser version 12203 (2007-04-20)
t: URI version 0.9.11
t: OpenSSL version 1.0.0
//}...
<< 1 2 > >>