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/ws-wss4j.git


The following commit(s) were added to refs/heads/master by this push:
     new 2796ac897 WSS-724 EncryptedKeyProcessor.getPublicKeyFromKeyValue 
should preserve original XMLSecurityExceptions (#567)
2796ac897 is described below

commit 2796ac897eddeedb6b9e1edc77a87fbf5c1030e9
Author: beth-soptim <[email protected]>
AuthorDate: Thu Jan 8 12:40:57 2026 +0100

    WSS-724 EncryptedKeyProcessor.getPublicKeyFromKeyValue should preserve 
original XMLSecurityExceptions (#567)
---
 .../main/java/org/apache/wss4j/dom/processor/EncryptedKeyProcessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ws-security-dom/src/main/java/org/apache/wss4j/dom/processor/EncryptedKeyProcessor.java
 
b/ws-security-dom/src/main/java/org/apache/wss4j/dom/processor/EncryptedKeyProcessor.java
index 8f3028da5..87b8f2b19 100644
--- 
a/ws-security-dom/src/main/java/org/apache/wss4j/dom/processor/EncryptedKeyProcessor.java
+++ 
b/ws-security-dom/src/main/java/org/apache/wss4j/dom/processor/EncryptedKeyProcessor.java
@@ -306,7 +306,7 @@ public class EncryptedKeyProcessor implements Processor {
 
             publicKey = keyValue.getPublicKey();
         } catch (XMLSecurityException e) {
-            throw new 
WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, 
"unsupportedKeyInfo");
+            throw new 
WSSecurityException(WSSecurityException.ErrorCode.INVALID_SECURITY, e, 
"unsupportedKeyInfo");
         }
         return publicKey;
     }

Reply via email to