This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch xmlsecurity-4.0.0 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 085cc374be1441452f07752c2acd7e937e7efc4c Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Nov 23 13:21:10 2023 +0100 Upgrade XMLSecurity to version 4.0.0 Signed-off-by: Andrea Cosentino <[email protected]> --- .../camel/component/xmlsecurity/XmlSignatureTest.java | 18 ------------------ parent/pom.xml | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XmlSignatureTest.java b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XmlSignatureTest.java index f4ed76979f2..9b89187c141 100644 --- a/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XmlSignatureTest.java +++ b/components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XmlSignatureTest.java @@ -230,17 +230,6 @@ public class XmlSignatureTest extends CamelTestSupport { "xmlsecurity-verify:transformsXsltXPath?keySelector=#selector").to("mock:result"); // END SNIPPET: transforms XSLT,XPath } - }, new RouteBuilder() { - public void configure() { - // START SNIPPET: transforms XSLT,XPath - secure Validation - // disabled - from("direct:transformsXsltXPathSecureValDisabled") - .to("xmlsecurity-sign:transformsXsltXPathSecureValDisabled?keyAccessor=#accessor&transformMethods=#transformsXsltXPath", - "xmlsecurity-verify:transformsXsltXPathSecureValDisabled?keySelector=#selector&secureValidation=false") - .to("mock:result"); - // END SNIPPET: transforms XSLT,XPath - secure Validation - // disabled - } }, new RouteBuilder() { public void configure() { // START SNIPPET: cryptocontextprops @@ -559,13 +548,6 @@ public class XmlSignatureTest extends CamelTestSupport { checkThrownException(mock, XmlSignatureException.class, null); } - @Test - public void testSetTransformMethodXsltXpathInRouteDefinitionSecValDisabled() throws Exception { - setupMock(); - sendBody("direct:transformsXsltXPathSecureValDisabled", payload); - MockEndpoint.assertIsSatisfied(context); - } - @Test public void testProperties() throws Exception { setupMock(); diff --git a/parent/pom.xml b/parent/pom.xml index 34c8a10761a..3015af3f46a 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -469,7 +469,7 @@ <xml-apis-version>1.4.01</xml-apis-version> <xml-apis-ext-version>1.3.04</xml-apis-ext-version> <xml-resolver-version>1.2</xml-resolver-version> - <xmlsec-version>2.2.6</xmlsec-version> + <xmlsec-version>4.0.0</xmlsec-version> <xmlunit-version>2.9.1</xmlunit-version> <xpp3-version>1.1.4c</xpp3-version> <yasson-version>3.0.3</yasson-version>
