Method: Onelogin::Saml::Response#initialize

Defined in:
lib/onelogin/saml/response.rb

#initialize(response) ⇒ Response

Returns a new instance of Response.

Raises:

  • (ArgumentError)


8
9
10
11
12
# File 'lib/onelogin/saml/response.rb', line 8

def initialize(response)
  raise ArgumentError.new("Response cannot be nil") if response.nil?
  self.response = response
  self.document = XMLSecurity::SignedDocument.new(Base64.decode64(response))
end