Class: Saml::Response
Instance Method Summary
collapse
#initialize, #success?
#initialize, #provider
Methods included from XMLHelpers
#add_signature, #to_soap, #to_xml
Instance Method Details
#assertion ⇒ Object
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
9
10
11
|
# File 'lib/saml/response.rb', line 9
def authn_failed?
!success? && status.status_code.authn_failed?
end
|
#encrypted_assertion ⇒ Object
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
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
13
14
15
|
# File 'lib/saml/response.rb', line 13
def request_denied?
!success? && status.status_code.request_denied?
end
|