lib/sepa/banks/danske/danske_response.rb
# Checks whether certificate embedded in the response has been signed with the bank's root
# certificate. Always returns true when {#command} is `:get_bank_certificate`, because the
# certificate is not present with that command.
#
# @return [true] if certificate is trusted
# @return [false] if certificate is not trusted
Checks whether certificate embedded in the response has been signed with the bank's root
certificate. Always returns true when {#command} is `:get_bank_certificate`, because the
certificate is not present with that command.
Checks whether certificate embedded in the response has been signed with the bank ' s root certificate . Always returns true when { #command } is ` : get_bank_certificate ` because the certificate is not present with that command .
def certificate_is_trusted?
      return true if @command == :get_bank_certificate
      verify_certificate_against_root_certificate(certificate, DANSKE_ROOT_CERTIFICATE)
    end
def certificate_is_trusted? return true if @command == :get_bank_certificate verify_certificate_against_root_certificate ( certificate , DANSKE_ROOT_CERTIFICATE ) end
Checks whether certificate embedded in the response has been signed with the bank's root
certificate.
Checks whether certificate embedded in the response has been signed with the bank ' s root certificate .
if certificate is trusted
if certificate is trusted
true
if certificate is not trusted
if certificate is not trusted
false