class OpenSSL::X509::Extension

Public Instance Methods

to_a() click to toggle source
# File lib/openssl_cms/x509-internal.rb, line 57
def to_a
  [ self.oid, self.value, self.critical? ]
end
to_h() click to toggle source
# File lib/openssl_cms/x509-internal.rb, line 53
def to_h # {"oid"=>sn|ln, "value"=>value, "critical"=>true|false}
  {"oid"=>self.oid,"value"=>self.value,"critical"=>self.critical?}
end
to_s() click to toggle source
# File lib/openssl_cms/x509-internal.rb, line 46
def to_s # "oid = critical, value"
  str = self.oid
  str << " = "
  str << "critical, " if self.critical?
  str << self.value.gsub(/\n/, ", ")
end