class CertificateAuthority::Extensions::NetscapeComment

DEPRECATED Contains a comment which will be displayed when the certificate is viewed in some browsers. www.openssl.org/docs/apps/x509v3_config.html#Netscape_String_extensions_

Constants

OPENSSL_IDENTIFIER

Attributes

comment[RW]
critical[RW]

Public Class Methods

new() click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 614
def initialize
  self.critical = false
end
parse(value, critical) click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 628
def self.parse(value, critical)
  obj = self.new
  return obj if value.nil?
  obj.critical = critical
  obj.comment = value
  obj
end

Public Instance Methods

openssl_identifier() click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 618
def openssl_identifier
  OPENSSL_IDENTIFIER
end
to_s() click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 622
def to_s
  res = []
  res << self.comment if self.comment
  res.join(',')
end