Sha256: 7f3a6c600f96f1e35a87e766322c0f1c9cd9e35cb17e581234ca031a93cb1ba2

Contents?: true

Size: 894 Bytes

Versions: 14

Compression:

Stored size: 894 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_one :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

14 entries across 14 versions & 1 rubygems

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