class Xmldsig::Canonicalize
Public Instance Methods
transform()
click to toggle source
# File lib/xmldsig/canonicalize.rb, line 3 def transform self.node = Canonicalizer.new(node, algorithm, inclusive_namespaces).canonicalize node end
Private Instance Methods
algorithm()
click to toggle source
# File lib/xmldsig/canonicalize.rb, line 9 def algorithm transform_node.get_attribute("Algorithm") end
inclusive_namespaces()
click to toggle source
# File lib/xmldsig/canonicalize.rb, line 13 def inclusive_namespaces inclusive_namespaces = transform_node.at_xpath("descendant::ec:InclusiveNamespaces", Xmldsig::NAMESPACES) if inclusive_namespaces && inclusive_namespaces.has_attribute?("PrefixList") inclusive_namespaces.get_attribute("PrefixList").to_s.split(" ") else [] end end