lib/sepa/banks/danske/danske_response.rb
def find_node_by_uri(uri)
        return super unless CERTIFICATE_COMMANDS.include? @command

        doc_without_signature = doc.dup
        doc_without_signature.at('xmlns|Signature', xmlns: DSIG).remove
        doc_without_signature.at("[xml|id='#{uri}']")
      end
# Finds a node by its reference URI from Danske Bank's certificate responses. If {#command} is
# other than `:get_bank_certificate`, `:create_certificate` or `:renew_certificate` returns super. This method is
# needed because Danske Bank uses a different way to reference nodes in their certificate
# responses.
#
# @param uri [String] reference URI of the node to find
# @return [Nokogiri::XML::Node] node with signature removed from its document since signature
#   has to be removed for canonicalization and hash calculation
Finds a node by its reference URI from Danske Bank's certificate responses.
Finds a node by its reference URI from Danske Bank ' s certificate responses .
def find_node_by_uri(uri)
        return super unless CERTIFICATE_COMMANDS.include? @command
        doc_without_signature = doc.dup
        doc_without_signature.at('xmlns|Signature', xmlns: DSIG).remove
        doc_without_signature.at("[xml|id='#{uri}']")
      end
def find_node_by_uri ( uri ) return super unless CERTIFICATE_COMMANDS . include? @command doc_without_signature = doc . dup doc_without_signature . at ( 'xmlns|Signature' , xmlns : DSIG ) . remove doc_without_signature . at ( "[xml|id='#{uri}']" ) end
Finds a node by its reference URI from Danske Bank's certificate responses.
Finds a node by its reference URI from Danske Bank ' s certificate responses .
node with signature removed from its document since signature has to be removed for canonicalization and hash calculation
node with signature removed from its document since signature has to be removed for canonicalization and hash calculation
Nokogiri::XML::Node
uri
reference URI of the node to find
reference URI of the node to find