Module: Saml::ComplexTypes::RoleDescriptorType
- Extended by:
- ActiveSupport::Concern
- Includes:
- Base
- Included in:
- SSODescriptorType, Elements::AttributeAuthorityDescriptor
- Defined in:
- lib/saml/complex_types/role_descriptor_type.rb
Instance Method Summary collapse
Instance Method Details
#find_key_descriptor(key_name, use) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/saml/complex_types/role_descriptor_type.rb', line 29 def find_key_descriptor(key_name, use) key_descriptors_by_use = find_key_descriptors_by_use(use) if key_name.present? key_descriptors_by_use.find { |key| key.key_info.key_name == key_name } else key_descriptors_by_use.first end end |
#initialize(*args) ⇒ Object
23 24 25 26 27 |
# File 'lib/saml/complex_types/role_descriptor_type.rb', line 23 def initialize(*args) super(*args) @key_descriptors ||= [] @protocol_support_enumeration ||= PROTOCOL_SUPPORT_ENUMERATION end |