Class: Saml::Elements::SPSSODescriptor

Inherits:
Object
  • Object
show all
Includes:
ComplexTypes::SSODescriptorType
Defined in:
lib/saml/elements/sp_sso_descriptor.rb

Defined Under Namespace

Classes: AssertionConsumerService

Instance Method Summary collapse

Methods included from ComplexTypes::RoleDescriptorType

#find_key_descriptor, #find_key_descriptors_by_use

Constructor Details

#initialize(*args) ⇒ SPSSODescriptor

Returns a new instance of SPSSODescriptor.



21
22
23
24
# File 'lib/saml/elements/sp_sso_descriptor.rb', line 21

def initialize(*args)
  super(*args)
  self.assertion_consumer_services ||= []
end

Instance Method Details

#add_assertion_consumer_service(binding, location, index, default = false) ⇒ Object



26
27
28
29
30
31
# File 'lib/saml/elements/sp_sso_descriptor.rb', line 26

def add_assertion_consumer_service(binding, location, index, default = false)
  assertion_consumer_services << AssertionConsumerService.new(binding:    binding,
                                                              location:   location,
                                                              index:      index,
                                                              is_default: default)
end