This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3_0_x-fixes
in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git


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

commit 843e411deccaca6ba8aad338f925f618c18e974d
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