Class: XmlSig::KeyInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/xml_sig/key_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/xml_sig/key_info.rb', line 3

def id
  @id
end

#key_dataObject

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_nameObject

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_valueObject

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_methodObject

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