Class: SAML2::StatusResponse

Inherits:
Message show all
Defined in:
lib/saml2/status_response.rb

Direct Known Subclasses

LogoutResponse, Response

Instance Attribute Summary collapse

Attributes inherited from Message

#destination, #errors, #issuer

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods inherited from Message

from_xml, #id, #issue_instant, parse, #sign, #valid_schema?, #validate

Methods included from Signable

#sign, #signature, #signed?, #signing_key, #valid_signature?, #validate_signature

Methods inherited from Base

#decrypt, from_xml, #inspect, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml

Constructor Details

#initializeStatusResponse

Returns a new instance of StatusResponse.



12
13
14
15
# File 'lib/saml2/status_response.rb', line 12

def initialize
  super
  @status = Status.new
end

Instance Attribute Details

#in_response_toString

Returns:

  • (String)


9
10
11
# File 'lib/saml2/status_response.rb', line 9

def in_response_to
  @in_response_to
end

#statusStatus

Returns:



26
27
28
# File 'lib/saml2/status_response.rb', line 26

def status
  @status ||= Status.from_xml(xml.at_xpath('samlp:Status', Namespaces::ALL))
end

Instance Method Details

#from_xml(node) ⇒ void

This method returns an undefined value.

Parse an XML element into this object.

Parameters:

  • node (Nokogiri::XML::Element)


18
19
20
21
22
23
# File 'lib/saml2/status_response.rb', line 18

def from_xml(node)
  super
  @status = nil
  remove_instance_variable(:@status)
  @in_response_to = node['InResponseTo']
end