lib/sepa/application_request.rb
def process_signature
        # No signature for Certificate Requests
        return if %i(
          create_certificate
          get_bank_certificate
          get_certificate
          get_service_certificates
        ).include? @command

        signature_node = remove_node('Signature', 'http://www.w3.org/2000/09/xmldsig#')
        digest = calculate_digest
        add_node_to_root(signature_node)
        add_value_to_signature('DigestValue', digest)
        add_value_to_signature('SignatureValue', calculate_signature)
        add_value_to_signature('X509Certificate', format_cert(@own_signing_certificate))
      end
# Removes signature from the application request, calculates the application request's digest,
# calculates the signature and adds needed values to signature node. Also adds
# {#own_signing_certificate} to the signature node.
Removes signature from the application request, calculates the application request's digest,
calculates the signature and adds needed values to signature node. Also adds
{#own_signing_certificate} to the signature node.
Removes signature from the application request calculates the application request ' s digest calculates the signature and adds needed values to signature node . Also adds { #own_signing_certificate } to the signature node .
def process_signature
        return if %i(
          create_certificate
          get_bank_certificate
          get_certificate
          get_service_certificates
        ).include? @command
        signature_node = remove_node('Signature', 'http://www.w3.org/2000/09/xmldsig#')
        digest = calculate_digest
        add_node_to_root(signature_node)
        add_value_to_signature('DigestValue', digest)
        add_value_to_signature('SignatureValue', calculate_signature)
        add_value_to_signature('X509Certificate', format_cert(@own_signing_certificate))
      end
def process_signature return if %i( create_certificate get_bank_certificate get_certificate get_service_certificates ) . include? @command signature_node = remove_node ( 'Signature' , 'http://www.w3.org/2000/09/xmldsig#' ) digest = calculate_digest add_node_to_root ( signature_node ) add_value_to_signature ( 'DigestValue' , digest ) add_value_to_signature ( 'SignatureValue' , calculate_signature ) add_value_to_signature ( 'X509Certificate' , format_cert ( @own_signing_certificate ) ) end
Removes signature from the application request, calculates the application request's digest,
calculates the signature and adds needed values to signature node.
Removes signature from the application request calculates the application request ' s digest calculates the signature and adds needed values to signature node .
# No signature for Certificate Requests