Class: SAML::Metadata::RoleDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/metadata/role_descriptor.rb

Direct Known Subclasses

SSODescriptor

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#key_descriptorsObject

Returns the value of attribute key_descriptors.



6
7
8
# File 'lib/saml/metadata/role_descriptor.rb', line 6

def key_descriptors
  @key_descriptors
end

#protocol_support_enumerationObject

Returns the value of attribute protocol_support_enumeration.



5
6
7
# File 'lib/saml/metadata/role_descriptor.rb', line 5

def protocol_support_enumeration
  @protocol_support_enumeration
end

Instance Method Details

#from_xml(xml) ⇒ Object



8
9
10
11
12
13
# File 'lib/saml/metadata/role_descriptor.rb', line 8

def from_xml(xml)
  @key_descriptors = xml.get_elements('md:KeyDescriptor').map do |kd_node|
    KeyDescriptor.from_xml(kd_node)
  end
  self
end

#signing_key_descriptorObject



15
16
17
# File 'lib/saml/metadata/role_descriptor.rb', line 15

def signing_key_descriptor
  @key_descriptors.find {|kd| kd.use == 'signing' }
end