Class: RSAML::EncryptedAssertion

Inherits:
Encrypted show all
Defined in:
lib/rsaml/assertion.rb

Overview

An encrypted assertion

Instance Attribute Summary

Attributes inherited from Encrypted

#encrypted_data

Instance Method Summary collapse

Methods inherited from Encrypted

#encrypted_keys

Instance Method Details

#to_xml(xml = Builder::XmlMarkup.new) ⇒ Object

Construct an XML fragment representing the encrypted assertion



63
64
65
66
67
68
# File 'lib/rsaml/assertion.rb', line 63

def to_xml(xml=Builder::XmlMarkup.new)
  xml.tag!('saml:EncryptedAssertion') {
    xml.tag!('xenc:EncryptedData', encrypted_data)
    encrypted_keys.each { |key| xml << encrypted_key.to_xml }
  }
end