Sha256: 2e0793021acca5fca8e5464efea64ddb111a3b84d4eb829ad63e16ae29142f44

Contents?: true

Size: 1.12 KB

Versions: 81

Compression:

Stored size: 1.12 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 :attribute_authority_descriptor, Saml::Elements::AttributeAuthorityDescriptor

      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

81 entries across 81 versions & 1 rubygems

Version Path
libsaml-3.3.0 lib/saml/elements/entity_descriptor.rb
libsaml-3.2.3 lib/saml/elements/entity_descriptor.rb
libsaml-3.2.2 lib/saml/elements/entity_descriptor.rb
libsaml-3.2.1 lib/saml/elements/entity_descriptor.rb
libsaml-3.1.2 lib/saml/elements/entity_descriptor.rb
libsaml-3.1.1 lib/saml/elements/entity_descriptor.rb
libsaml-3.1.0 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.9 lib/saml/elements/entity_descriptor.rb
libsaml-2.24.3 lib/saml/elements/entity_descriptor.rb
libsaml-2.24.2 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.8 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.7 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.6 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.5 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.4 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.3 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.2 lib/saml/elements/entity_descriptor.rb
libsaml-3.0.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.24.1 lib/saml/elements/entity_descriptor.rb
libsaml-2.23.2 lib/saml/elements/entity_descriptor.rb