Method: EzCrypto::Name#initialize

Defined in:
lib/extensions/ezcrypto/ezcrypto/ezsig.rb

#initialize(name) ⇒ Name

Initializes the Name object with the underlying OpenSSL Name object. You generally do not need to use this.

Rather use the Certificates subject or issuer methods.


385
386
387
388
389
390
391
392
393
394
# File 'lib/extensions/ezcrypto/ezcrypto/ezsig.rb', line 385

def initialize(name)
  @name=name
  @attributes={}
  name.to_s.split(/\//).each do |field| 
    key, val = field.split(/=/,2)
    if key
      @attributes[key.to_sym]=val
    end
  end  
end