You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2019/01/24 15:11:13 UTC
[cxf] branch 3.2.x-fixes updated: Explicitly set the KeyValue type
when we have a public key
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.2.x-fixes by this push:
new 2c043bf Explicitly set the KeyValue type when we have a public key
2c043bf is described below
commit 2c043bfaef1a0081dee51418f35cce3d5aa1ea24
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Jan 24 12:19:18 2019 +0000
Explicitly set the KeyValue type when we have a public key
(cherry picked from commit 58c439c85bebf0cb7f1cdd117810bba018507aa7)
---
.../cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
index ec3dba5..4cbe8e5 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
@@ -494,6 +494,7 @@ public class AsymmetricBindingHandler extends AbstractBindingBuilder {
} else if (!isRequestor() && securityToken != null
&& securityToken.getKey() instanceof PublicKey) {
encr.setUseThisPublicKey((PublicKey)securityToken.getKey());
+ encr.setKeyIdentifierType(WSConstants.KEY_VALUE);
} else {
setEncryptionUser(encr, encrToken, false, crypto);
}