lib/sepa/application_request.rb
# Calculates the application request's signature value. Uses {#signing_private_key} for the
# calculation.
#
# @return [String] the base64 encoded signature
# @todo Move to {Utilities}
Calculates the application request's signature value. Uses {#signing_private_key} for the
calculation.
Calculates the application request ' s signature value . Uses { #signing_private_key } for the calculation .
def calculate_signature
        sha1 = OpenSSL::Digest::SHA1.new
        dsig = 'http://www.w3.org/2000/09/xmldsig#'
        node = @application_request.at_css("dsig|SignedInfo", 'dsig' => dsig)
        signature = @signing_private_key.sign(sha1, node.canonicalize(canonicalization_mode))
        encode signature
      end
def calculate_signature sha1 = OpenSSL :: Digest :: SHA1 . new dsig = 'http://www.w3.org/2000/09/xmldsig#' node = @application_request . at_css ( "dsig|SignedInfo" , 'dsig' => dsig ) signature = @signing_private_key . sign ( sha1 , node . canonicalize ( canonicalization_mode ) ) encode signature end
Calculates the application request's signature value.
Calculates the application request ' s signature value .
the base64 encoded signature
the base64 encoded signature
String
todo
Move to {Utilities}
Move to { Utilities }