class CertificateAuthority::Extensions::AuthorityKeyIdentifier

Identifies the public key associated with a given private key. Reference: Section 4.2.1.1 of RFC3280 tools.ietf.org/html/rfc3280#section-4.2.1.1

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 219
def initialize
  @critical = false
  @identifier = ["keyid", "issuer"]
end
parse(value, critical) click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 238
def self.parse(value, critical)
  obj = self.new
  return obj if value.nil?
  obj.critical = critical
  obj.identifier = value.split(/,\s*/).last.chomp
  obj
end

Public Instance Methods

==(o) click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 234
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 224
def openssl_identifier
  OPENSSL_IDENTIFIER
end
to_s() click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/extensions.rb, line 228
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 247
def state
  [@critical,@identifier]
end