lib/sepa/banks/danske/danske_response.rb
# Returns own encryption certificate which has been signed by the bank. 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 encryption certificate which has been signed by the bank. Only present in
`:create_certificate` & `:renew_certificate` responses
Returns own encryption certificate which has been signed by the bank . Only present in ` : create_certificate ` & ` : renew_certificate ` responses
def own_encryption_certificate
      return unless [:create_certificate, :renew_certificate].include?(@command)
      @own_encryption_certificate ||= extract_cert(doc, 'EncryptionCert', DANSKE_PKI)
    end
def own_encryption_certificate return unless [ :create_certificate , :renew_certificate ] . include? ( @command ) @own_encryption_certificate ||= extract_cert ( doc , 'EncryptionCert' , DANSKE_PKI ) end
Returns own encryption certificate which has been signed by the bank.
Returns own encryption 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