You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2021/05/04 15:46:50 UTC
[ws-wss4j] branch 2_4_x-fixes updated: Switch to use the Santuario
provider in a test to fix an issue with rsa-sha1
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 2_4_x-fixes
in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git
The following commit(s) were added to refs/heads/2_4_x-fixes by this push:
new c611b8e Switch to use the Santuario provider in a test to fix an issue with rsa-sha1
c611b8e is described below
commit c611b8e4b4d88993aa3f40a478e267a926459f66
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue May 4 16:42:50 2021 +0100
Switch to use the Santuario provider in a test to fix an issue with rsa-sha1
---
.../java/org/apache/wss4j/dom/message/SignaturePrefixListTest.java | 4 ++--
.../src/test/java/org/apache/wss4j/dom/message/SignatureTest.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePrefixListTest.java b/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePrefixListTest.java
index 57df122..6352164 100644
--- a/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePrefixListTest.java
+++ b/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignaturePrefixListTest.java
@@ -104,7 +104,7 @@ public class SignaturePrefixListTest {
CryptoType cryptoType = new CryptoType(CryptoType.TYPE.ALIAS);
cryptoType.setAlias("16c73ab6-b892-458f-abf5-2f875f74882e");
XMLValidateContext context = new DOMValidateContext(crypto.getX509Certificates(cryptoType)[0].getPublicKey(), receivedSignature);
- XMLSignatureFactory signatureFactory = XMLSignatureFactory.getInstance("DOM");
+ XMLSignatureFactory signatureFactory = XMLSignatureFactory.getInstance("DOM", "ApacheXMLDSig");
XMLSignature xmlSignature = signatureFactory.unmarshalXMLSignature(context);
ExcC14NParameterSpec spec = (ExcC14NParameterSpec)xmlSignature.getSignedInfo().getCanonicalizationMethod().getParameterSpec();
@@ -116,4 +116,4 @@ public class SignaturePrefixListTest {
return secEngine.processSecurityHeader(doc, null, null, crypto);
}
-}
\ No newline at end of file
+}
diff --git a/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignatureTest.java b/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignatureTest.java
index 742dc76..9506b10 100644
--- a/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignatureTest.java
+++ b/ws-security-dom/src/test/java/org/apache/wss4j/dom/message/SignatureTest.java
@@ -1079,4 +1079,4 @@ public class SignatureTest {
return secEngine.processSecurityHeader(doc, null, null, crypto);
}
-}
\ No newline at end of file
+}