class SAML2::ServiceProvider

def assertion_consumer_services

Returns:
  • (Endpoint::Indexed::Array) -
def assertion_consumer_services
  @assertion_consumer_services ||= begin
    nodes = xml.xpath('md:AssertionConsumerService', Namespaces::ALL)
    Endpoint::Indexed::Array.from_xml(nodes)
  end
end

def attribute_consuming_services

Returns:
  • (AttributeConsumingService::Array) -
def attribute_consuming_services
  @attribute_consuming_services ||= begin
    nodes = xml.xpath('md:AttributeConsumingService', Namespaces::ALL)
    AttributeConsumingService::Array.from_xml(nodes)
  end
end

def build(builder)

(see Base#build)
def build(builder)
  builder['md'].SPSSODescriptor do |sp_sso_descriptor|
    super(sp_sso_descriptor)
    assertion_consumer_services.each do |acs|
      acs.build(sp_sso_descriptor, 'AssertionConsumerService')
    end
    attribute_consuming_services.each do |acs|
      acs.build(sp_sso_descriptor)
    end
  end
end

def from_xml(node)

(see Base#from_xml)
def from_xml(node)
  super
  @assertion_consumer_services = nil
  @attribute_consuming_services = nil
end

def initialize

def initialize
  super
  @assertion_consumer_services = Endpoint::Indexed::Array.new
  @attribute_consuming_services = AttributeConsumingService::Array.new
end