class OpenSSL::X509::Extension
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11101
def initialize: (String der) -> void
| (String oid, String value, ?boolish critical) -> void
Creates an X509 extension.
The extension may be created from der data or from an extension oid and value. The oid may be either an OID or an extension name. If critical is true the extension is marked critical.
Public Instance Methods
(self other) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11006
def ==: (self other) -> bool
[U] (boolish) → U
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11013
def critical=: [U] (boolish) -> U
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11020
def critical?: () -> bool
(self) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11109
def initialize_copy: (self) -> void
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11029
def oid: () -> String
Returns the OID of the extension. Returns the short name or the dotted decimal notation.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11036
def oid=: (String oid) -> String
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11043
def to_a: () -> [ String, String, bool ]
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11050
def to_der: () -> String
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11057
def to_h: () -> Hash[String, untyped]
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11064
def to_s: () -> String
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11071
def value: () -> String
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.3/stdlib/openssl/0/openssl.rbs, line 11078
def value=: (String | ASN1::_ToDer data) -> String