Class: Saml::Kit::Response

Inherits:
Document show all
Extended by:
Forwardable
Includes:
Respondable
Defined in:
lib/saml/kit/response.rb

Constant Summary

Constants inherited from Document

Document::PROTOCOL_XSD

Instance Attribute Summary

Attributes included from Respondable

#request_id

Instance Method Summary collapse

Methods included from Respondable

#in_response_to, #status_code, #success?

Methods inherited from Document

#destination, #id, #issue_instant, #issuer, #to_h, #to_s, to_saml_document, #to_xhtml, #to_xml, #version

Methods included from Trustable

#signed?, #trusted?

Constructor Details

#initialize(xml, request_id: nil, configuration: Saml::Kit.configuration) ⇒ Response

Returns a new instance of Response.



11
12
13
14
# File 'lib/saml/kit/response.rb', line 11

def initialize(xml, request_id: nil, configuration: Saml::Kit.configuration)
  @request_id = request_id
  super(xml, name: "Response", configuration: configuration)
end

Instance Method Details

#assertionObject



16
17
18
# File 'lib/saml/kit/response.rb', line 16

def assertion
  @assertion ||= Saml::Kit::Assertion.new(to_h, configuration: @configuration)
end