lib/sepa/banks/danske/soap_danske.rb
def encrypt_application_request
        encryption_certificate = x509_certificate(@bank_encryption_certificate)
        encryption_public_key = encryption_certificate.public_key
        encryption_certificate = format_cert(encryption_certificate)
        encrypted_application_request, key = encrypt_ar
        encrypted_key = encrypt_key(key, encryption_public_key)
        build_encrypted_ar(encryption_certificate, encrypted_key, encrypted_application_request)
      end
# Encrypts the application request with the public key of the bank encryption certificate got
# from the parameters. The actual encryption is done by {#encrypt_ar} and {#encrypt_key}
# methods. After the encryption, the encrypted application request xml is built by
# {#build_encrypted_ar} method
#
# @return [Nokogiri::XML] the encrypted application request as a nokogiri document
Encrypts the application request with the public key of the bank encryption certificate got
from the parameters. The actual encryption is done by {#encrypt_ar} and {#encrypt_key}
methods. After the encryption, the encrypted application request xml is built by
{#build_encrypted_ar} method
Encrypts the application request with the public key of the bank encryption certificate got from the parameters . The actual encryption is done by { #encrypt_ar } and { #encrypt_key } methods . After the encryption the encrypted application request xml is built by { #build_encrypted_ar } method
def encrypt_application_request
        encryption_certificate = x509_certificate(@bank_encryption_certificate)
        encryption_public_key = encryption_certificate.public_key
        encryption_certificate = format_cert(encryption_certificate)
        encrypted_application_request, key = encrypt_ar
        encrypted_key = encrypt_key(key, encryption_public_key)
        build_encrypted_ar(encryption_certificate, encrypted_key, encrypted_application_request)
      end
def encrypt_application_request encryption_certificate = x509_certificate ( @bank_encryption_certificate ) encryption_public_key = encryption_certificate . public_key encryption_certificate = format_cert ( encryption_certificate ) encrypted_application_request , key = encrypt_ar encrypted_key = encrypt_key ( key , encryption_public_key ) build_encrypted_ar ( encryption_certificate , encrypted_key , encrypted_application_request ) end
Encrypts the application request with the public key of the bank encryption certificate got
from the parameters.
Encrypts the application request with the public key of the bank encryption certificate got from the parameters .
the encrypted application request as a nokogiri document
the encrypted application request as a nokogiri document
Nokogiri::XML