class SAML::Core::Response

Attributes

assertions[R]

Public Class Methods

from_xml(xml) click to toggle source
# File lib/saml/core/response.rb, line 9
def self.from_xml(xml); new.from_xml(xml); end

Public Instance Methods

from_xml(xml) click to toggle source
Calls superclass method
# File lib/saml/core/response.rb, line 11
def from_xml(xml)
  super(xml)
  @xml = xml

  @assertions = xml.get_elements('saml:Assertion').map do |a|
    Assertion.from_xml(a)
  end
  
  self
end
valid?(expected_certificate) click to toggle source
# File lib/saml/core/response.rb, line 22
def valid?(expected_certificate)
  XMLSignature.new(@xml).verify(expected_certificate)
end