Sha256: 14186de6662990831ace9d4bff6aa1969b309a4ac6d1f45e0e3283b9ef005668

Contents?: true

Size: 1.03 KB

Versions: 26

Compression:

Stored size: 1.03 KB

Contents

module Saml
  module Elements
    class EntityDescriptor
      include Saml::Base
      include Saml::XMLHelpers

      register_namespace 'md', Saml::MD_NAMESPACE

      tag 'EntityDescriptor'
      namespace 'md'

      attribute :_id, String, :tag => 'ID'
      attribute :name, String, :tag => "Name"
      attribute :entity_id, String, :tag => "entityID"
      attribute :valid_until, Time, :tag => "validUntil"
      attribute :cache_duration, String, :tag => "cacheDuration"

      has_one :signature, Saml::Elements::Signature

      has_one :extensions, Saml::Elements::MDExtensions

      has_one :idp_sso_descriptor, Saml::Elements::IDPSSODescriptor
      has_one :sp_sso_descriptor, Saml::Elements::SPSSODescriptor

      has_one :organization, Saml::Elements::Organization
      has_many :contact_persons, Saml::Elements::ContactPerson

      validates :entity_id, :presence => true

      def initialize(*args)
        super(*args)
        @contact_persons ||= []
        @_id             ||= Saml.generate_id
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
libsaml-2.6.2 lib/saml/elements/entity_descriptor.rb
libsaml-2.6.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.6.0 lib/saml/elements/entity_descriptor.rb
libsaml-2.5.2 lib/saml/elements/entity_descriptor.rb
libsaml-2.5.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.5.0 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.7 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.6 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.5 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.4 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.3 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.2 lib/saml/elements/entity_descriptor.rb
libsaml-2.4.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.3.2 lib/saml/elements/entity_descriptor.rb
libsaml-2.3.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.2.3 lib/saml/elements/entity_descriptor.rb
libsaml-2.2.2 lib/saml/elements/entity_descriptor.rb
libsaml-2.2.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.1.9 lib/saml/elements/entity_descriptor.rb
libsaml-2.1.8 lib/saml/elements/entity_descriptor.rb