るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.017秒)
トップページ > バージョン:2.4.0[x] > クエリ:parse[x] > ライブラリ:openssl[x]

別のキーワード

  1. time parse
  2. csv parse
  3. ripper parse
  4. parser parse
  5. psych parse_stream

検索結果

OpenSSL::X509::Name.parse(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (54331.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 (54310.0)

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

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

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

OpenSSL::X509::Name.parse_openssl(str, template=OBJECT_TYPE_TEMPLATE) -> OpenSSL::X509::Name (18331.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 (18310.0)

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

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

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

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

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

...、[属性型文字列、属性値文字列、属性値の型を表す整数(OpenSSL::ASN1以下の各定数で定義されているASN1の型)] という3要素の配列です。

例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foo...

絞り込み条件を変える

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

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

...は通常は以下のいずれかを渡します。
* nil
* 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 Compan...
...y/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::RFC2253)
# => "emailAddress=foobar@lab3.example.co.jp...
...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::MULTILINE)
# => "countryName =...

OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE -> Integer (25.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 } (25.0)

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

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

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

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

以下の文字列がキーで...