Class: Moxml::Signature::Model::Key::DSAKeyValue
- Inherits:
-
Object
- Object
- Moxml::Signature::Model::Key::DSAKeyValue
- 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
-
#g ⇒ Object
Returns the value of attribute g.
-
#j ⇒ Object
Returns the value of attribute j.
-
#p ⇒ Object
Returns the value of attribute p.
-
#pgen_counter ⇒ Object
Returns the value of attribute pgen_counter.
-
#q ⇒ Object
Returns the value of attribute q.
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(p:, q:, y:, g: nil, j: nil, seed: nil, pgen_counter: nil) ⇒ DSAKeyValue
constructor
rubocop:disable-next Naming/MethodParameterName -- P/Q/G/Y/J are W3C spec names.
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
#g ⇒ Object
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 |
#j ⇒ Object
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 |
#p ⇒ Object
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_counter ⇒ Object
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 |
#q ⇒ Object
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 |
#seed ⇒ Object
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 |
#y ⇒ Object
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 |