Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-170

SignatureAction does not set DigestAlgorithm on WSSecSignature instance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7, 1.6
    • WSS4J Core
    • None

    Description

      Right now the SignatureAction.executre() method does not explicitely set the digest algorithm. As a result the Algorithm attribute of the Soap message's DigestMethod tag will always contain the SHA1 URI, even though you are using RSA-SHA256 for the signature. If I add these lines to the execute() method of the SignatureAction, it works for me:

      if (reqData.getDigestAlgorithm()!=null)
      wsSign.setDigestAlgo(reqData.getDigestAlgorithm());

      Obviously, I also had to add a digestMethod field to the RequestData class in order to make it work.

      Attachments

        1. WSS4J.txt
          2 kB
          Rik Gruwez

        Activity

          People

            coheigea Colm O hEigeartaigh
            gruwez Rik Gruwez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: