class CertificateAuthority::Extensions::SubjectKeyIdentifier
Identifies the public key associated with a given certificate. Should be required for “CA” certificates. Reference: Section 4.2.1.2 of RFC3280 tools.ietf.org/html/rfc3280#section-4.2.1.2
Constants
- OPENSSL_IDENTIFIER
Attributes
critical[RW]
identifier[RW]
Public Class Methods
new()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 175 def initialize @critical = false @identifier = "hash" end
parse(value, critical)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 194 def self.parse(value, critical) obj = self.new return obj if value.nil? obj.critical = critical obj.identifier = value obj end
Public Instance Methods
==(o)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 190 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 180 def openssl_identifier OPENSSL_IDENTIFIER end
to_s()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 184 def to_s res = [] res << @identifier res.join(',') end
Protected Instance Methods
state()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 203 def state [@critical,@identifier] end