Class: XmlSig::KeyInfo
- Inherits:
-
Object
- Object
- XmlSig::KeyInfo
- Defined in:
- lib/xml_sig/key_info.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#key_data ⇒ Object
Returns the value of attribute key_data.
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#key_value ⇒ Object
Returns the value of attribute key_value.
-
#retrieval_method ⇒ Object
Returns the value of attribute retrieval_method.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/xml_sig/key_info.rb', line 3 def id @id end |
#key_data ⇒ Object
Returns the value of attribute key_data.
7 8 9 |
# File 'lib/xml_sig/key_info.rb', line 7 def key_data @key_data end |
#key_name ⇒ Object
Returns the value of attribute key_name.
4 5 6 |
# File 'lib/xml_sig/key_info.rb', line 4 def key_name @key_name end |
#key_value ⇒ Object
Returns the value of attribute key_value.
5 6 7 |
# File 'lib/xml_sig/key_info.rb', line 5 def key_value @key_value end |
#retrieval_method ⇒ Object
Returns the value of attribute retrieval_method.
6 7 8 |
# File 'lib/xml_sig/key_info.rb', line 6 def retrieval_method @retrieval_method end |
Instance Method Details
#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/xml_sig/key_info.rb', line 9 def to_xml(xml=Builder::XmlMarkup.new) xml.tag!('ds:KeyInfo') { xml.tag!('ds:KeyName', key_name) xml.tag!('ds:KeyValue') { xml << key_value.to_xml } } end |