lib/sepa/application_response.rb
# Checks whether the embedded certificate has been signed by the private key of the bank's root
# certificate. The root certificate used varies by bank.
#
# @return [true] if the certificate is trusted
# @return [false] if the certificate is not trusted
Checks whether the embedded certificate has been signed by the private key of the bank's root
certificate. The root certificate used varies by bank.
Checks whether the embedded certificate has been signed by the private key of the bank ' s root certificate . The root certificate used varies by bank .
def certificate_is_trusted?
      root_certificate =
        case @bank
        when :nordea
          NORDEA_ROOT_CERTIFICATE
        when :danske
          DANSKE_ROOT_CERTIFICATE
        end
      verify_certificate_against_root_certificate(certificate, root_certificate)
    end
def certificate_is_trusted? root_certificate = case @bank when :nordea NORDEA_ROOT_CERTIFICATE when :danske DANSKE_ROOT_CERTIFICATE end verify_certificate_against_root_certificate ( certificate , root_certificate ) end
Checks whether the embedded certificate has been signed by the private key of the bank's root
certificate.
Checks whether the embedded certificate has been signed by the private key of the bank ' s root certificate .
if the certificate is trusted
if the certificate is trusted
true
if the certificate is not trusted
if the certificate is not trusted
false