lib/sepa/banks/danske/danske_response.rb
# Returns the bank's encryption certificate which is used to encrypt messages sent to the bank.
# The certificate is only present in `:get_bank_certificate` responess.
#
# @return [OpenSSL::X509::Certificate] if {#command} is `:get_bank_certificate`
# @return [nil] if command is any other
Returns the bank's encryption certificate which is used to encrypt messages sent to the bank.
The certificate is only present in `:get_bank_certificate` responess.
Returns the bank ' s encryption certificate which is used to encrypt messages sent to the bank . The certificate is only present in ` : get_bank_certificate ` responess .
def bank_encryption_certificate
      return unless @command == :get_bank_certificate
      @bank_encryption_certificate ||= extract_cert(doc, 'BankEncryptionCert', DANSKE_PKI)
    end
def bank_encryption_certificate return unless @command == :get_bank_certificate @bank_encryption_certificate ||= extract_cert ( doc , 'BankEncryptionCert' , DANSKE_PKI ) end
Returns the bank's encryption certificate which is used to encrypt messages sent to the bank.
Returns the bank ' s encryption certificate which is used to encrypt messages sent to the bank .
if {#command} is `:get_bank_certificate`
if { #command } is ` : get_bank_certificate `
OpenSSL::X509::Certificate
if command is any other
if command is any other
nil