lib/sepa/banks/danske/danske_response.rb
# Extract certificate that has been used to sign the response. This overrides
# {Response#certificate} method with specific functionality for `:get_bank_certificate`,
# `:create_certificate` & `:renew_certificate` commands. Otherwise just calls {Response#certificate}
#
# @return [OpenSSL::X509::Certificate]
# @raise [OpenSSL::X509::CertificateError] if certificate cannot be processed
Extract certificate that has been used to sign the response.
Extract certificate that has been used to sign the response .
def certificate
      return super unless CERTIFICATE_COMMANDS.include? @command
      @certificate ||= extract_cert(doc, 'X509Certificate', DSIG)
    end
def certificate return super unless CERTIFICATE_COMMANDS . include? @command @certificate ||= extract_cert ( doc , 'X509Certificate' , DSIG ) end
Extract certificate that has been used to sign the response.
Extract certificate that has been used to sign the response .
None
OpenSSL::X509::Certificate
[OpenSSL::X509::CertificateError] if certificate cannot be processed
[ OpenSSL :: X509 :: CertificateError ] if certificate cannot be processed