るりまサーチ

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

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

ライブラリ

検索結果

Resolv::DNS::Name#to_s -> String (21101.0)

ドメイン名を文字列として返します。

ドメイン名を文字列として返します。

絶対パス形式であっても返される文字列には最後のドットは含まれません。

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

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

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

flags には通常は以下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE

*
例:
require 'openssl'
n = OpenSSL::X509::Name.pa...
...jp')
n.to_s
# => "/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:...
...bar,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::MULTILINE)
# => "countryName...

URI::LDAP.build(ary) -> URI::LDAP (18.0)

引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。

...要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extensions]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーは
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions
//}...
...のいずれかです。

@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。

例:
require 'uri'
p URI::LDAP.build(["example.com", "1", "/a", "b", "c", "d", "e=f"]).to_s
#=> "ldap://example.com:1/a?b?c?d?e=f"...

URI::LDAP.build(hash) -> URI::LDAP (18.0)

引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。

...要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extensions]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーは
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions
//}...
...のいずれかです。

@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。

例:
require 'uri'
p URI::LDAP.build(["example.com", "1", "/a", "b", "c", "d", "e=f"]).to_s
#=> "ldap://example.com:1/a?b?c?d?e=f"...