Sha256: f23982b6477ceabaa48195dafc788c17b7e3af71461518f16a3d256ecd9f9e67

Contents?: true

Size: 694 Bytes

Versions: 8

Compression:

Stored size: 694 Bytes

Contents

module Xmldsig
  class Transforms < Array
    class Canonicalize < Transform
      def transform
        self.node = Canonicalizer.new(node, algorithm, inclusive_namespaces, with_comments).canonicalize
        node
      end

      private

      def algorithm
        transform_node.get_attribute("Algorithm")
      end

      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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xmldsig-0.7.0 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.6 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.5 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.4 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.3 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.2 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.6.1 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.5.1 lib/xmldsig/transforms/canonicalize.rb