lib/sepa/banks/danske/danske_response.rb
# Validates that the encrypted key in the response can be decrypted with the private key given
# to the response in the parameters. Response is invalid if this cannot be done.
Validates that the encrypted key in the response can be decrypted with the private key given
to the response in the parameters. Response is invalid if this cannot be done.
Validates that the encrypted key in the response can be decrypted with the private key given to the response in the parameters . Response is invalid if this cannot be done .
def can_be_decrypted_with_given_key
        return if CERTIFICATE_COMMANDS.include? @command
        return unless encrypted_application_response.css('CipherValue', 'xmlns' => XMLENC)[0]
        return if decrypt_embedded_key
        errors.add(:encryption_private_key, DECRYPTION_ERROR_MESSAGE)
      end
def can_be_decrypted_with_given_key return if CERTIFICATE_COMMANDS . include? @command return unless encrypted_application_response . css ( 'CipherValue' , 'xmlns' => XMLENC ) [ 0 ] return if decrypt_embedded_key errors . add ( :encryption_private_key , DECRYPTION_ERROR_MESSAGE ) end
Validates that the encrypted key in the response can be decrypted with the private key given
to the response in the parameters.
Validates that the encrypted key in the response can be decrypted with the private key given to the response in the parameters .