class Xmldsig::Transforms::Canonicalize

Public Instance Methods

transform() click to toggle source
# File lib/xmldsig/transforms/canonicalize.rb, line 4
def transform
  self.node = Canonicalizer.new(node, algorithm, inclusive_namespaces, with_comments).canonicalize
  node
end

Private Instance Methods

algorithm() click to toggle source
# File lib/xmldsig/transforms/canonicalize.rb, line 11
def algorithm
  transform_node.get_attribute("Algorithm")
end
inclusive_namespaces() click to toggle source
# File lib/xmldsig/transforms/canonicalize.rb, line 15
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
    nil
  end
end