instance method OpenSSL::X509::ExtensionFactory#create_extension
create_extension(obj) -> OpenSSL::X509::Extension
create_extension(oid, value, critical=false) -> OpenSSL::X509::Extension
-
OpenSSL::X509::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである ならば、 OpenSSL::X509::ExtensionFactory#create_ext_from_array、 OpenSSL::X509::ExtensionFactory#create_ext_from_hash、 OpenSSL::X509::ExtensionFactory#create_ext_from_string、 がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、 OpenSSL::X509::ExtensionFactory#create_ext が呼びだされて オブジェクトを生成します。
- [PARAM] obj:
- 拡張領域のデータ。配列、ハッシュ、文字列のいずれか
- [PARAM] oid:
- 拡張領域の識別子を表す文字列
- [PARAM] value:
- 拡張領域の値を表す文字列
- [PARAM] critical:
- 重要度(真偽値)
class OpenSSL::X509::ExtensionFactory