Sha256: 660073bd8e289f6cb5449af49120dcc6a76517ee659e9fafa61b3606e5c2ce9f

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

require 'saml/elements/signature/inclusive_namespaces'
require 'saml/elements/signature/transform'
require 'saml/elements/signature/transforms'
require 'saml/elements/signature/digest_method'
require 'saml/elements/signature/reference'
require 'saml/elements/signature/signature_method'
require 'saml/elements/signature/canonicalization_method'
require 'saml/elements/signature/signed_info'
require 'saml/elements/key_info'

module Saml
  module Elements
    class Signature
      include Saml::Base

      tag "Signature"
      register_namespace 'ds', Saml::XML_DSIG_NAMESPACE
      namespace 'ds'

      has_one :signed_info, SignedInfo
      element :signature_value, String, tag: "SignatureValue", namespace: 'ds', state_when_nil: true
      has_one :key_info, KeyInfo

      def initialize(*args)
        super(*args)
        options      = args.extract_options!
        @signed_info ||= SignedInfo.new(uri: options.delete(:uri), digest_value: options.delete(:digest_value))
      end

      def key_name
        @key_info.try(:key_name)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libsaml-3.13.1 lib/saml/elements/signature.rb
libsaml-3.13.0 lib/saml/elements/signature.rb
libsaml-3.12.0 lib/saml/elements/signature.rb
libsaml-3.11.0 lib/saml/elements/signature.rb
libsaml-3.10.0 lib/saml/elements/signature.rb
libsaml-3.9.3 lib/saml/elements/signature.rb
libsaml-3.9.2 lib/saml/elements/signature.rb
libsaml-3.9.1 lib/saml/elements/signature.rb
libsaml-3.9.0 lib/saml/elements/signature.rb
libsaml-3.8.0 lib/saml/elements/signature.rb
libsaml-3.7.0 lib/saml/elements/signature.rb
libsaml-3.6.0 lib/saml/elements/signature.rb
libsaml-3.5.0 lib/saml/elements/signature.rb