class CertificateAuthority::Extensions::NetscapeCertificateType
DEPRECATED Specifics the purposes for which a certificate can be used. The basicConstraints, keyUsage, and extendedKeyUsage extensions are now used instead. www.openssl.org/docs/apps/x509v3_config.html#Netscape_Certificate_Type
Constants
- OPENSSL_IDENTIFIER
Attributes
critical[RW]
flags[RW]
Public Class Methods
new()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 579 def initialize self.critical = false self.flags = [] end
parse(value, critical)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 594 def self.parse(value, critical) obj = self.new return obj if value.nil? obj.critical = critical obj.flags = value.split(/,\s*/) obj end
Public Instance Methods
openssl_identifier()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 584 def openssl_identifier OPENSSL_IDENTIFIER end
to_s()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 588 def to_s res = [] res += self.flags res.join(',') end