cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: CXF-7021 - "The WS-SecurityPolicy TransportBinding does not respect the digest method of the algorithm suite".
Date Wed, 24 Aug 2016 12:43:19 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 635aa322d -> 327bb1fda


CXF-7021 - "The WS-SecurityPolicy TransportBinding does not respect the digest method of the
algorithm suite".


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/327bb1fd
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/327bb1fd
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/327bb1fd

Branch: refs/heads/3.1.x-fixes
Commit: 327bb1fdab05a43762569510339a4ef9a05b6a8a
Parents: 635aa32
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Aug 24 12:25:02 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Aug 24 12:46:12 2016 +0100

----------------------------------------------------------------------
 .../ws/security/wss4j/policyhandlers/TransportBindingHandler.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/327bb1fd/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
index 697ea7e..15b2162 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/TransportBindingHandler.java
@@ -579,6 +579,8 @@ public class TransportBindingHandler extends AbstractBindingBuilder {
             sig.setSignatureAlgorithm(binding.getAlgorithmSuite().getSymmetricSignature());
         }
         sig.setSigCanonicalization(binding.getAlgorithmSuite().getC14n().getValue());
+        AlgorithmSuiteType algType = binding.getAlgorithmSuite().getAlgorithmSuiteType();
+        sig.setDigestAlgo(algType.getDigest());
 
         Document doc = saaj.getSOAPPart();
         sig.prepare(doc, crypto, secHeader);


Mime
View raw message