Sha256: fd22dce7c2164378848cce92c9ddcbc3f9ff9b2bb2dc8e2f0321835d04f92e14
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
module Xmldsig_fiscalizer class Transforms < Array def apply(node) @node = node each do |transform_node| @node = get_transform(@node, transform_node).transform end @node end private def get_transform(node, transform_node) case transform_node.get_attribute("Algorithm") when "http://www.w3.org/2000/09/xmldsig#enveloped-signature" Transforms::EnvelopedSignature.new(node, transform_node) when "http://www.w3.org/2001/10/xml-exc-c14n#", "http://www.w3.org/TR/2001/REC-xml-c14n-20010315", "http://www.w3.org/2006/12/xml-c14n11" Transforms::Canonicalize.new(node, transform_node) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmldsig-fiscalizer-0.2.5 | lib/xmldsig_fiscalizer/transforms.rb |