Parent

Methods

KASPAuditor::Config::Keys::AnyKey

Attributes

alg_length[RW]
algorithm[RW]
lifetime[RW]
standby[RW]

Public Class Methods

new(e) click to toggle source
# File ../../auditor/lib/kasp_auditor/config.rb, line 251
def initialize(e)
  # Algorithm length and value
  @algorithm = Dnsruby::Algorithms.new(e.elements['Algorithm'].text.to_i)
  begin
    @standby = e.elements['Standby'].text.to_i
  rescue Exception
    @standby = 0
  end
  lifetime_text = e.elements['Lifetime'].text
  @lifetime = Config.xsd_duration_to_seconds(lifetime_text)
  if (@lifetime == 0)
    @lifetime = 999999999999
  end
  e.elements.each('Algorithm') {|s|
    @alg_length = s.attributes['length'].to_i
  }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.