class SAML::Core::Assertion
Attributes
attribute_statement[R]
authn_statements[R]
conditions[R]
id[R]
issue_instant[R]
issuer[R]
subject[R]
version[R]
Public Class Methods
from_xml(xml)
click to toggle source
# File lib/saml/core/assertion.rb, line 15 def self.from_xml(xml); new.from_xml(xml); end
new()
click to toggle source
# File lib/saml/core/assertion.rb, line 17 def initialize @authn_statements = [] end
Public Instance Methods
from_xml(xml)
click to toggle source
# File lib/saml/core/assertion.rb, line 21 def from_xml(xml) @id = xml.attributes['ID'] @version = xml.attributes['Version'] @issue_instant = xml.attributes['IssueInstant'] subject_element = xml.get_elements('saml:Subject') unless subject_element.empty? # @subject = Subject.from_xml(subject_element.first) end attribute_statements = xml.get_elements('saml:AttributeStatement') unless attribute_statements.empty? @attribute_statement = AttributeStatement.from_xml(attribute_statements.first) end xml.get_elements('saml:AuthnStatement').each do |as| @authn_statements << AuthnStatement.from_xml(as) end self end