Class: Saml::Response

Inherits:
Object
  • Object
show all
Includes:
ComplexTypes::StatusResponseType
Defined in:
lib/saml/response.rb

Instance Method Summary collapse

Methods included from ComplexTypes::StatusResponseType

#initialize, #success?

Methods included from ComplexTypes::RequestAbstractType

#initialize, #provider

Methods included from XMLHelpers

#add_signature, #to_soap, #to_xml

Instance Method Details

#assertionObject



21
22
23
# File 'lib/saml/response.rb', line 21

def assertion
  assertions.first
end

#assertion=(assertion) ⇒ Object



25
26
27
# File 'lib/saml/response.rb', line 25

def assertion=(assertion)
  (self.assertions ||= []) << assertion
end

#authn_failed?Boolean

Returns:

  • (Boolean)


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

def authn_failed?
  !success? && status.status_code.authn_failed?
end

#encrypted_assertionObject



29
30
31
# File 'lib/saml/response.rb', line 29

def encrypted_assertion
  encrypted_assertions.first
end

#encrypted_assertion=(encrypted_assertion) ⇒ Object



33
34
35
# File 'lib/saml/response.rb', line 33

def encrypted_assertion=(encrypted_assertion)
 (self.encrypted_assertions ||= []) << encrypted_assertion
end

#no_authn_context?Boolean

Returns:

  • (Boolean)


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

def no_authn_context?
  !success? && status.status_code.no_authn_context?
end

#request_denied?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/saml/response.rb', line 13

def request_denied?
  !success? && status.status_code.request_denied?
end