Sha256: 51c45b85d9c005e979569656f6bdc5c3e9f0f95709b934e5b06d8d2225f69780

Contents?: true

Size: 1.08 KB

Versions: 44

Compression:

Stored size: 1.08 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", :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))
        @key_info     ||= KeyInfo.new
      end

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
libsaml-2.12.1 lib/saml/elements/signature.rb
libsaml-2.12.0 lib/saml/elements/signature.rb
libsaml-2.11.2 lib/saml/elements/signature.rb
libsaml-2.11.1 lib/saml/elements/signature.rb
libsaml-2.11.0 lib/saml/elements/signature.rb
libsaml-2.10.7 lib/saml/elements/signature.rb
libsaml-2.10.6 lib/saml/elements/signature.rb
libsaml-2.10.5 lib/saml/elements/signature.rb
libsaml-2.10.4 lib/saml/elements/signature.rb
libsaml-2.10.3 lib/saml/elements/signature.rb
libsaml-2.10.2 lib/saml/elements/signature.rb
libsaml-2.10.1 lib/saml/elements/signature.rb
libsaml-2.10.0 lib/saml/elements/signature.rb
libsaml-2.9.0 lib/saml/elements/signature.rb
libsaml-2.8.1 lib/saml/elements/signature.rb
libsaml-2.8.0 lib/saml/elements/signature.rb
libsaml-2.7.0 lib/saml/elements/signature.rb
libsaml-2.6.9 lib/saml/elements/signature.rb
libsaml-2.6.8 lib/saml/elements/signature.rb
libsaml-2.6.7 lib/saml/elements/signature.rb