Sha256: 3ff005bfcfb4ffcbf42763d7cce534f0977d5fbdb1a1d252a380a67daddf29c2

Contents?: true

Size: 913 Bytes

Versions: 43

Compression:

Stored size: 913 Bytes

Contents

module Saml
  module Elements
    class SubjectConfirmation
      include Saml::Base

      class Methods
        BEARER = "urn:oasis:names:tc:SAML:2.0:cm:bearer"
      end

      tag "SubjectConfirmation"
      register_namespace 'saml', Saml::SAML_NAMESPACE
      namespace 'saml'

      attribute :_method, String, :tag => 'Method'

      has_many :subject_confirmation_data, Saml::Elements::SubjectConfirmationData

      validates :_method, :presence => true


      def initialize(*args)
        options                    = args.extract_options!
        @subject_confirmation_data = Saml::Elements::SubjectConfirmationData.new(:recipient      => options.delete(:recipient),
                                                                                 :in_response_to => options.delete(:in_response_to))
        super(*(args << options))
        @_method ||= Methods::BEARER
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
libsaml-2.10.4 lib/saml/elements/subject_confirmation.rb
libsaml-2.10.3 lib/saml/elements/subject_confirmation.rb
libsaml-2.10.2 lib/saml/elements/subject_confirmation.rb
libsaml-2.10.1 lib/saml/elements/subject_confirmation.rb
libsaml-2.10.0 lib/saml/elements/subject_confirmation.rb
libsaml-2.9.0 lib/saml/elements/subject_confirmation.rb
libsaml-2.8.1 lib/saml/elements/subject_confirmation.rb
libsaml-2.8.0 lib/saml/elements/subject_confirmation.rb
libsaml-2.7.0 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.9 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.8 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.7 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.6 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.4 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.2 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.1 lib/saml/elements/subject_confirmation.rb
libsaml-2.6.0 lib/saml/elements/subject_confirmation.rb
libsaml-2.5.2 lib/saml/elements/subject_confirmation.rb
libsaml-2.5.1 lib/saml/elements/subject_confirmation.rb
libsaml-2.5.0 lib/saml/elements/subject_confirmation.rb