Class: SAML2::StatusResponse
- Defined in:
- lib/saml2/status_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Attributes inherited from Message
#destination, #errors, #issuer
Attributes inherited from Base
Instance Method Summary collapse
-
#from_xml(node) ⇒ void
Parse an XML element into this object.
-
#initialize ⇒ StatusResponse
constructor
A new instance of StatusResponse.
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
#initialize ⇒ StatusResponse
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_to ⇒ String
9 10 11 |
# File 'lib/saml2/status_response.rb', line 9 def in_response_to @in_response_to end |
#status ⇒ Status
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.
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 |