lib/sepa/banks/danske/danske_response.rb
def own_signing_certificate
      return unless [:create_certificate, :renew_certificate].include?(@command)

      @own_signing_certificate ||= extract_cert(doc, 'SigningCert', DANSKE_PKI)
    end
# Returns own signing certificate which has been signed by the bank. Is used to sign requests
# sent to the bank. Is only present in `:create_certificate` & `:renew_certificate` responses.
#
# @return [OpenSSL::X509::Certificate] if {#command} is `:create_certificate` or `:renew_certificate`
# @return [nil] if command is any other
Returns own signing certificate which has been signed by the bank. Is used to sign requests
sent to the bank. Is only present in `:create_certificate` & `:renew_certificate` responses.
Returns own signing certificate which has been signed by the bank . Is used to sign requests sent to the bank . Is only present in ` : create_certificate ` & ` : renew_certificate ` responses .
def own_signing_certificate
      return unless [:create_certificate, :renew_certificate].include?(@command)
      @own_signing_certificate ||= extract_cert(doc, 'SigningCert', DANSKE_PKI)
    end
def own_signing_certificate return unless [ :create_certificate , :renew_certificate ] . include? ( @command ) @own_signing_certificate ||= extract_cert ( doc , 'SigningCert' , DANSKE_PKI ) end
Returns own signing certificate which has been signed by the bank.
Returns own signing certificate which has been signed by the bank .
if {#command} is `:create_certificate` or `:renew_certificate`
if { #command } is ` : create_certificate ` or ` : renew_certificate `
OpenSSL::X509::Certificate
if command is any other
if command is any other
nil