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:10:40 UTC
[cxf] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 58c439c Explicitly set the KeyValue type when we have a public key
58c439c is described below
commit 58c439c85bebf0cb7f1cdd117810bba018507aa7
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
---
.../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 a5c23d6..a2ea1f5 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
@@ -491,6 +491,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);
}