Class: Moxml::Signature::Model::Key::DSAKeyValue

Inherits:
Object
  • Object
show all
Defined in:
lib/moxml/signature/model/key/dsa_key_value.rb

Overview

ds:DSAKeyValue — P, Q, G, Y required; J, Seed, PgenCounter optional. Attribute names mirror the W3C spec §4.5.2.1 element names (P, Q, G, Y, J, Seed, PgenCounter).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(p:, q:, y:, g: nil, j: nil, seed: nil, pgen_counter: nil) ⇒ DSAKeyValue

rubocop:disable-next Naming/MethodParameterName -- P/Q/G/Y/J are W3C spec names



14
15
16
17
18
19
20
21
22
23
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 14

def initialize(p:, q:, y:, g: nil, j: nil, seed: nil,
               pgen_counter: nil)
  @p = p
  @q = q
  @y = y
  @g = g
  @j = j
  @seed = seed
  @pgen_counter = pgen_counter
end

Instance Attribute Details

#gObject

Returns the value of attribute g.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def g
  @g
end

#jObject

Returns the value of attribute j.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def j
  @j
end

#pObject

Returns the value of attribute p.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def p
  @p
end

#pgen_counterObject

Returns the value of attribute pgen_counter.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def pgen_counter
  @pgen_counter
end

#qObject

Returns the value of attribute q.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def q
  @q
end

#seedObject

Returns the value of attribute seed.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def seed
  @seed
end

#yObject

Returns the value of attribute y.



11
12
13
# File 'lib/moxml/signature/model/key/dsa_key_value.rb', line 11

def y
  @y
end