Method: Saml::Response#encrypt_assertions
- Defined in:
- lib/saml/response.rb
#encrypt_assertions(key_descriptor_or_certificate, include_certificate: false, include_key_retrieval_method: false) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# 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 |