Sha256: a0037e9278cc441746e05bcb0d0c89a61d69dc3e489c6e06add6dcdc448d3102

Contents?: true

Size: 859 Bytes

Versions: 14

Compression:

Stored size: 859 Bytes

Contents

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

      register_namespace "md", Saml::MD_NAMESPACE

      tag "EntitiesDescriptor"
      namespace "md"

      attribute :_id, String, tag: "ID"
      attribute :name, String, tag: "Name"
      attribute :valid_until, Time, tag: "validUntil"
      attribute :cache_duration, String, tag: "cacheDuration"

      has_one :signature, Saml::Elements::Signature

      has_many :entities_descriptors, Saml::Elements::EntitiesDescriptor
      has_many :entity_descriptors, Saml::Elements::EntityDescriptor

      validates :entities_descriptors, length: { minimum: 1 }, if: lambda { |ed| ed.entity_descriptors.blank? }
      validates :entity_descriptors, length: { minimum: 1 }, if: lambda { |ed| ed.entities_descriptors.blank? }

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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