cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/4] cxf git commit: CXF-7021 - "The WS-SecurityPolicy TransportBinding does not respect the digest method of the algorithm suite".
Date Tue, 06 Sep 2016 10:15:21 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 503442f3a -> 595c43e21


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/67cef8f5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/67cef8f5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/67cef8f5

Branch: refs/heads/3.0.x-fixes
Commit: 67cef8f5fcdf2a267f81e4aee077add1c01fd73a
Parents: 503442f
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Aug 24 12:25:02 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Sep 6 11:12:32 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/67cef8f5/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 3dac911..251e33d 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
@@ -578,6 +578,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