This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch wss-641
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/wss-641 by this push:
new 818ad96 Get encrypted key SHA1 value directly from WSS4J
818ad96 is described below
commit 818ad9699d4a1cdeb7abce528e50a299b50fde65
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Fri Jan 25 11:17:38 2019 +0000
Get encrypted key SHA1 value directly from WSS4J
---
.../cxf/ws/security/wss4j/policyhandlers/SymmetricBindingHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/SymmetricBindingHandler.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/SymmetricBindingHandler.java
index 87a6a30..cc37da2 100644
---
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/SymmetricBindingHandler.java
+++
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/SymmetricBindingHandler.java
@@ -932,7 +932,7 @@ public class SymmetricBindingHandler extends
AbstractBindingBuilder {
// Set the SHA1 value of the encrypted key, this is used when the
encrypted
// key is referenced via a key identifier of type EncryptedKeySHA1
- tempTok.setSHA1(getSHA1(encrKey.getEncryptedEphemeralKey()));
+ tempTok.setSHA1(encrKey.getEncryptedKeySHA1());
tokenStore.add(tempTok);
// Create another cache entry with the SHA1 Identifier as the key for
easy retrieval