Sha256: 994f5b823aa747b2be0dcfd5a103c38f72a6d2f8f20d76bb6dc3ddf6d6bb9a8e

Contents?: true

Size: 678 Bytes

Versions: 16

Compression:

Stored size: 678 Bytes

Contents

module Xmldsig
  class Transforms < Array
    class Canonicalize < Transform
      def transform
        self.node = Canonicalizer.new(node, algorithm, inclusive_namespaces).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
          []
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
xmldsig-0.2.9 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.8 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.7 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.6 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.5 lib/xmldsig/transforms/canonicalize.rb
xmldsig-fiscalizer-0.2.4 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.4 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.3 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.2 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.1 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.2.0 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.1.0 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.0.4 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.0.3 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.0.2 lib/xmldsig/transforms/canonicalize.rb
xmldsig-0.0.1 lib/xmldsig/transforms/canonicalize.rb