Module: OpenSSL::X509::Extension::Helpers
- Included in:
- AuthorityInfoAccess, AuthorityKeyIdentifier, CRLDistributionPoints, SubjectKeyIdentifier
- Defined in:
- lib/openssl/x509.rb
Overview
def to_s # “oid = critical, value”
str = self.oid
str << " = "
str << "critical, " if self.critical?
str << self.value.gsub(/\n/, ", ")
end
def to_h # “value”=>value, “critical”=>true|false
{"oid"=>self.oid,"value"=>self.value,"critical"=>self.critical?}
end
def to_a
[ self.oid, self.value, self.critical? ]
end
Instance Method Summary collapse
Instance Method Details
#find_extension(oid) ⇒ Object
69 70 71 |
# File 'lib/openssl/x509.rb', line 69 def find_extension(oid) extensions.find { |e| e.oid == oid } end |