Commit 5c7711d
Changed files (2)
lib
xml
kit
spec
fixtures
lib/xml/kit/templatable.rb
@@ -34,6 +34,7 @@ module Xml
asymmetric_cipher: asymmetric_cipher,
symmetric_cipher: symmetric_cipher
).to_xml(xml: xml)
+ yield xml if block_given?
end
# @deprecated Use {#encrypt_data_for} instead of this
spec/fixtures/soap.builder
@@ -3,7 +3,16 @@ xml.instruct!
xml.Envelope do
xml.Header do
xml.Security do
- encrypt_key_for(xml: xml, id: key_id)
+ encrypt_key_for(xml: xml, id: key_id) do |xml|
+ xml.KeyInfo do
+ xml.x509Data do
+ xml.X509IssuerSerial do
+ xml.X509IssuerName "blah"
+ xml.X509IssuerNumber 1
+ end
+ end
+ end
+ end
xml.BinarySecurityToken ''
end
end