Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.6
-
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.