class Saml::Response
Attributes
xml_value[RW]
Public Instance Methods
assertion()
click to toggle source
# File lib/saml/response.rb, line 51 def assertion assertions.first end
assertion=(assertion)
click to toggle source
# File lib/saml/response.rb, line 55 def assertion=(assertion) (self.assertions ||= []) << assertion end
authn_failed?()
click to toggle source
# File lib/saml/response.rb, line 11 def authn_failed? !success? && status.status_code.authn_failed? end
decrypt_assertions(private_key)
click to toggle source
# File lib/saml/response.rb, line 43 def decrypt_assertions(private_key) @assertions ||= [] encrypted_assertions.each do |encrypted_assertion| @assertions << Saml::Util.decrypt_assertion(encrypted_assertion, private_key) end encrypted_assertions.clear end
encrypt_assertions(key_descriptor_or_certificate, include_certificate: false, include_key_retrieval_method: false)
click to toggle source
# File lib/saml/response.rb, line 31 def encrypt_assertions(key_descriptor_or_certificate, include_certificate: false, include_key_retrieval_method: false) @encrypted_assertions = [] assertions.each do |assertion| @encrypted_assertions << Saml::Util.encrypt_assertion( assertion, key_descriptor_or_certificate, include_certificate: include_certificate, include_key_retrieval_method: include_key_retrieval_method ) end assertions.clear end
encrypted_assertion()
click to toggle source
# File lib/saml/response.rb, line 59 def encrypted_assertion encrypted_assertions.first end
encrypted_assertion=(encrypted_assertion)
click to toggle source
# File lib/saml/response.rb, line 63 def encrypted_assertion=(encrypted_assertion) (self.encrypted_assertions ||= []) << encrypted_assertion end
no_authn_context?()
click to toggle source
# File lib/saml/response.rb, line 23 def no_authn_context? !success? && status.status_code.no_authn_context? end
request_denied?()
click to toggle source
# File lib/saml/response.rb, line 15 def request_denied? !success? && status.status_code.request_denied? end
request_unsupported?()
click to toggle source
# File lib/saml/response.rb, line 19 def request_unsupported? !success? && status.status_code.request_unsupported? end
unknown_principal?()
click to toggle source
# File lib/saml/response.rb, line 27 def unknown_principal? !success? && status.status_code.unknown_principal? end