Class: OpenSSL::X509::Extension
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/openssl/ossl_x509ext.c, ext/openssl/lib/openssl/x509.rb |
Class Method Summary
-
.new(asn1)
constructor
Creates an ::OpenSSL::X509 extension.
Instance Attribute Summary
- #critical=(flag) rw
- #critical? ⇒ Boolean rw
- #oid rw
- #oid=(oid) rw
- #value rw
- #value=(data) rw
Instance Method Summary
Constructor Details
.new(asn1)
.new(name, value)
.new(name, value, critical)
Creates an ::OpenSSL::X509 extension.
The extension may be created from asn1
data or from an extension name
and #value. The name
may be either an OID or an extension name. If critical
is true the extension is marked critical.
Instance Attribute Details
#critical=(flag) (rw)
#critical? ⇒ Boolean
(rw)
#oid (rw)
#oid=(oid) (rw)
#value (rw)
#value=(data) (rw)
Instance Method Details
#to_a
[ GitHub ]#to_der
#to_h
“value”=>value, “critical”=>true|false
#to_s
“oid = critical, value”