class SAML::Metadata::EntityDescriptor
Attributes
entity_id[RW]
Public Class Methods
from_xml(xml)
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 7 def self.from_xml(xml) allocate.from_xml(xml) end
Public Instance Methods
from_xml(xml)
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 11 def from_xml(xml) @entity_id = xml.attributes['entityID'] @sp_sso_descriptors = xml.get_elements('md:SPSSODescriptor').map do |elem| SPSSODescriptor.from_xml(elem) end @idp_sso_descriptors = xml.get_elements('md:IDPSSODescriptor').map do |elem| IDPSSODescriptor.from_xml(elem) end self end
idp?()
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 34 def idp? not @idp_sso_descriptors.empty? end
idp_sso_descriptors()
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 26 def idp_sso_descriptors @idp_sso_descriptors.clone end
sp?()
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 30 def sp? not @sp_sso_descriptors.empty? end
sp_sso_descriptors()
click to toggle source
# File lib/saml/metadata/entity_descriptor.rb, line 22 def sp_sso_descriptors @sp_sso_descriptors.clone end