Class: SAML::Metadata::RoleDescriptor
- Inherits:
-
Object
- Object
- SAML::Metadata::RoleDescriptor
- Defined in:
- lib/saml/metadata/role_descriptor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key_descriptors ⇒ Object
Returns the value of attribute key_descriptors.
-
#protocol_support_enumeration ⇒ Object
Returns the value of attribute protocol_support_enumeration.
Instance Method Summary collapse
Instance Attribute Details
#key_descriptors ⇒ Object
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_enumeration ⇒ Object
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_descriptor ⇒ Object
15 16 17 |
# File 'lib/saml/metadata/role_descriptor.rb', line 15 def signing_key_descriptor @key_descriptors.find {|kd| kd.use == 'signing' } end |