class CertificateAuthority::Extensions::ExtendedKeyUsage
Specifies even more allowed usages in addition to what is specified in the Key Usage extension. Reference: Section 4.2.1.13 of RFC3280 tools.ietf.org/html/rfc3280#section-4.2.1.13
Constants
- OPENSSL_IDENTIFIER
Attributes
critical[RW]
usage[RW]
Public Class Methods
new()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 369 def initialize @critical = false @usage = ["serverAuth"] end
parse(value, critical)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 388 def self.parse(value, critical) obj = self.new return obj if value.nil? obj.critical = critical obj.usage = value.split(/,\s*/) obj end
Public Instance Methods
==(o)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 384 def ==(o) o.class == self.class && o.state == state end
openssl_identifier()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 374 def openssl_identifier OPENSSL_IDENTIFIER end
to_s()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 378 def to_s res = [] res += @usage res.join(',') end
Protected Instance Methods
state()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 397 def state [@critical,@usage] end