class CertificateAuthority::WrappedDistinguishedName
This is a significantly more complicated case. It's possible that generically handled certificates will include custom OIDs in the subject.
Attributes
x509_name[RW]
Public Class Methods
new(x509_name)
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/distinguished_name.rb, line 79 def initialize(x509_name) @x509_name = x509_name subject = @x509_name.to_a subject.each do |element| field = element[0].downcase value = element[1] #type = element[2] ## -not used method_sym = "#{field}=".to_sym if self.respond_to?(method_sym) self.send("#{field}=",value) else ## Custom OID @custom_oids = true end end end
Public Instance Methods
custom_oids?()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/distinguished_name.rb, line 102 def custom_oids? @custom_oids end
to_x509_name()
click to toggle source
# File vendor/certificate_authority/lib/certificate_authority/distinguished_name.rb, line 98 def to_x509_name @x509_name end