lib/sepa/soap_builder.rb
def calculate_digest(doc, node)
        sha1       = OpenSSL::Digest::SHA1.new
        node       = doc.at_css(node)
        canon_node = canonicalize_exclusively(node)

        encode(sha1.digest(canon_node)).gsub(/\s+/, "")
      end
# Calculates digest hash for the given node in the given document. The node is canonicalized
# exclusively before digest calculation.
#
# @param doc [Nokogiri::XML] Document that contains the node
# @param node [String] The name of the node
# @return [String] the base64 encoded string
# @todo remove this method and use {Utilities#calculate_digest}
Calculates digest hash for the given node in the given document. The node is canonicalized
exclusively before digest calculation.
Calculates digest hash for the given node in the given document . The node is canonicalized exclusively before digest calculation .
def calculate_digest(doc, node)
        sha1       = OpenSSL::Digest::SHA1.new
        node       = doc.at_css(node)
        canon_node = canonicalize_exclusively(node)
        encode(sha1.digest(canon_node)).gsub(/\s+/, "")
      end
def calculate_digest ( doc , node ) sha1 = OpenSSL :: Digest :: SHA1 . new node = doc . at_css ( node ) canon_node = canonicalize_exclusively ( node ) encode ( sha1 . digest ( canon_node ) ) . gsub ( / \s + / , "" ) end
Calculates digest hash for the given node in the given document.
Calculates digest hash for the given node in the given document .
the base64 encoded string
the base64 encoded string
String
doc
Document that contains the node
Document that contains the node
node
The name of the node
The name of the node
todo
remove this method and use {Utilities#calculate_digest}
remove this method and use { Utilities#calculate_digest }