Sha256: 2d6e4ad70f0ac246770e937ff94ac7fe04f15f46d91d87f6951890acc32ba8ef

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

xml.Signature 'xmlns' => ::Xml::Kit::Namespaces::XMLDSIG do
  xml.SignedInfo do
    xml.CanonicalizationMethod Algorithm: ::Xml::Kit::Namespaces::CANONICALIZATION
    xml.SignatureMethod Algorithm: signature_method
    xml.Reference URI: "##{reference_id}" do
      xml.Transforms do
        xml.Transform Algorithm: "#{::Xml::Kit::Namespaces::XMLDSIG}enveloped-signature"
        xml.Transform Algorithm: ::Xml::Kit::Namespaces::CANONICALIZATION
      end
      xml.DigestMethod Algorithm: digest_method
      xml.DigestValue ''
    end
  end
  xml.SignatureValue ''
  xml.KeyInfo do
    xml.X509Data do
      xml.X509Certificate certificate.stripped
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xml-kit-0.3.0 lib/xml/kit/templates/signature.builder
xml-kit-0.2.0 lib/xml/kit/templates/signature.builder
xml-kit-0.1.14 lib/xml/kit/templates/signature.builder
xml-kit-0.1.13 lib/xml/kit/templates/signature.builder
xml-kit-0.1.12 lib/xml/kit/templates/signature.builder