This is an automated email from the ASF dual-hosted git repository. ppalaga pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 05fb8a19035e2cbeb7732a1dd72db98f10f47b77 Author: Peter Palaga <ppal...@redhat.com> AuthorDate: Tue Aug 25 10:38:22 2020 +0200 Crypto (JCE) JVM support --- catalog/pom.xml | 1 + docs/modules/ROOT/nav.adoc | 1 + docs/modules/ROOT/pages/reference/components.adoc | 3 + docs/modules/ROOT/pages/reference/dataformats.adoc | 6 ++ .../ROOT/pages/reference/extensions/crypto.adoc | 31 +++++++ docs/modules/ROOT/pages/reference/index.adoc | 3 + extensions-jvm/crypto/deployment/pom.xml | 63 ++++++++++++++ .../crypto/deployment/CryptoProcessor.java | 46 +++++++++++ extensions-jvm/crypto/integration-test/pom.xml | 95 ++++++++++++++++++++++ .../component/crypto/it/CryptoResource.java | 77 ++++++++++++++++++ .../quarkus/component/crypto/it/CryptoTest.java | 50 ++++++++++++ extensions-jvm/crypto/pom.xml | 40 +++++++++ extensions-jvm/crypto/runtime/pom.xml | 94 +++++++++++++++++++++ .../main/resources/META-INF/quarkus-extension.yaml | 32 ++++++++ extensions-jvm/pom.xml | 1 + poms/bom/pom.xml | 15 ++++ 16 files changed, 558 insertions(+) diff --git a/catalog/pom.xml b/catalog/pom.xml index d3bcc7b..80c6bdb 100644 --- a/catalog/pom.xml +++ b/catalog/pom.xml @@ -110,6 +110,7 @@ camel-quarkus-couchbase camel-quarkus-couchdb camel-quarkus-cron + camel-quarkus-crypto camel-quarkus-csv camel-quarkus-dataformat camel-quarkus-debezium-mongodb diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index 14b1e50..cb270ae 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -87,6 +87,7 @@ *** xref:reference/extensions/couchbase.adoc[Couchbase] *** xref:reference/extensions/couchdb.adoc[CouchDB] *** xref:reference/extensions/cron.adoc[Cron] +*** xref:reference/extensions/crypto.adoc[Crypto (JCE)] *** xref:reference/extensions/csv.adoc[CSV] *** xref:reference/extensions/dataformat.adoc[Data Format] *** xref:reference/extensions/debezium-mongodb.adoc[Debezium MongoDB Connector] diff --git a/docs/modules/ROOT/pages/reference/components.adoc b/docs/modules/ROOT/pages/reference/components.adoc index 77f2202..29cb710 100644 --- a/docs/modules/ROOT/pages/reference/components.adoc +++ b/docs/modules/ROOT/pages/reference/components.adoc @@ -235,6 +235,9 @@ Stable | 1.0.0 | Consume changesets for inserts, updates and deletes in a CouchD | xref:reference/extensions/cron.adoc[Cron] | [.camel-element-artifact]##camel-quarkus-cron## | [.camel-element-Native]##Native## + Stable | 1.0.0 | A generic interface for triggering events at times specified through the Unix cron syntax. +| xref:reference/extensions/crypto.adoc[Crypto (JCE)] | [.camel-element-artifact]##camel-quarkus-crypto## | [.camel-element-JVM]##JVM## + +Preview | 1.1.0 | Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). + | xref:reference/extensions/dataformat.adoc[Data Format] | [.camel-element-artifact]##camel-quarkus-dataformat## | [.camel-element-Native]##Native## + Stable | 0.4.0 | Use a Camel Data Format as a regular Camel Component. diff --git a/docs/modules/ROOT/pages/reference/dataformats.adoc b/docs/modules/ROOT/pages/reference/dataformats.adoc index 754a4f4..274cc05 100644 --- a/docs/modules/ROOT/pages/reference/dataformats.adoc +++ b/docs/modules/ROOT/pages/reference/dataformats.adoc @@ -25,6 +25,9 @@ Stable | 1.0.0 | Marshal and unmarshal Java beans from and to flat payloads (suc | xref:reference/extensions/bindy.adoc[Bindy Key Value Pair] | [.camel-element-artifact]##camel-quarkus-bindy## | [.camel-element-Native]##Native## + Stable | 1.0.0 | Marshal and unmarshal Java beans from and to flat payloads (such as CSV, delimited, fixed length formats, or FIX messages). +| xref:reference/extensions/crypto.adoc[Crypto (Java Cryptographic Extension)] | [.camel-element-artifact]##camel-quarkus-crypto## | [.camel-element-JVM]##JVM## + +Preview | 1.1.0 | Encrypt and decrypt messages using Java Cryptography Extension (JCE). + | xref:reference/extensions/csv.adoc[CSV] | [.camel-element-artifact]##camel-quarkus-csv## | [.camel-element-Native]##Native## + Stable | 0.2.0 | Handle CSV (Comma Separated Values) payloads. @@ -70,6 +73,9 @@ Stable | 1.0.0 | Compress and decompress streams using LZF deflate algorithm. | xref:reference/extensions/mail.adoc[MIME Multipart] | [.camel-element-artifact]##camel-quarkus-mail## | [.camel-element-Native]##Native## + Stable | 0.2.0 | Marshal Camel messages with attachments into MIME-Multipart messages and back. +| xref:reference/extensions/crypto.adoc[PGP] | [.camel-element-artifact]##camel-quarkus-crypto## | [.camel-element-JVM]##JVM## + +Preview | 1.1.0 | Encrypt and decrypt messages using Java Cryptographic Extension (JCE) and PGP. + | xref:reference/extensions/protobuf.adoc[Protobuf] | [.camel-element-artifact]##camel-quarkus-protobuf## | [.camel-element-JVM]##JVM## + Preview | 1.0.0 | Serialize and deserialize Java objects using Google's Protocol buffers. diff --git a/docs/modules/ROOT/pages/reference/extensions/crypto.adoc b/docs/modules/ROOT/pages/reference/extensions/crypto.adoc new file mode 100644 index 0000000..2b4140a --- /dev/null +++ b/docs/modules/ROOT/pages/reference/extensions/crypto.adoc @@ -0,0 +1,31 @@ +// Do not edit directly! +// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page + +[[crypto]] += Crypto (JCE) +:page-aliases: extensions/crypto.adoc + +[.badges] +[.badge-key]##Since Camel Quarkus##[.badge-version]##1.1.0## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-unsupported]##unsupported## + +Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). + +== What's inside + +* https://camel.apache.org/components/latest/dataformats/crypto-dataformat.html[Crypto (Java Cryptographic Extension) data format] +* https://camel.apache.org/components/latest/crypto-component.html[Crypto (JCE) component], URI syntax: `crypto:cryptoOperation:name` +* https://camel.apache.org/components/latest/dataformats/pgp-dataformat.html[PGP data format] + +Please refer to the above links for usage and configuration details. + +== Maven coordinates + +[source,xml] +---- +<dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto</artifactId> +</dependency> +---- + +Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. diff --git a/docs/modules/ROOT/pages/reference/index.adoc b/docs/modules/ROOT/pages/reference/index.adoc index 1b18f37..8c2752a 100644 --- a/docs/modules/ROOT/pages/reference/index.adoc +++ b/docs/modules/ROOT/pages/reference/index.adoc @@ -239,6 +239,9 @@ Stable | 1.0.0 | Consume changesets for inserts, updates and deletes in a CouchD | xref:reference/extensions/cron.adoc[Cron] | camel-quarkus-cron | [.camel-element-Native]##Native## + Stable | 1.0.0 | A generic interface for triggering events at times specified through the Unix cron syntax. +| xref:reference/extensions/crypto.adoc[Crypto (JCE)] | camel-quarkus-crypto | [.camel-element-JVM]##JVM## + +Preview | 1.1.0 | Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE). + | xref:reference/extensions/csv.adoc[CSV] | camel-quarkus-csv | [.camel-element-Native]##Native## + Stable | 0.2.0 | Handle CSV (Comma Separated Values) payloads. diff --git a/extensions-jvm/crypto/deployment/pom.xml b/extensions-jvm/crypto/deployment/pom.xml new file mode 100644 index 0000000..eaf47ee --- /dev/null +++ b/extensions-jvm/crypto/deployment/pom.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto-parent</artifactId> + <version>1.1.0-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>camel-quarkus-crypto-deployment</artifactId> + <name>Camel Quarkus :: Crypto (JCE) :: Deployment</name> + + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-core-deployment</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto</artifactId> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <annotationProcessorPaths> + <path> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-extension-processor</artifactId> + <version>${quarkus.version}</version> + </path> + </annotationProcessorPaths> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/extensions-jvm/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java b/extensions-jvm/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java new file mode 100644 index 0000000..25694e7 --- /dev/null +++ b/extensions-jvm/crypto/deployment/src/main/java/org/apache/camel/quarkus/component/crypto/deployment/CryptoProcessor.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.crypto.deployment; + +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.annotations.ExecutionTime; +import io.quarkus.deployment.annotations.Record; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.pkg.steps.NativeBuild; +import org.apache.camel.quarkus.core.JvmOnlyRecorder; +import org.jboss.logging.Logger; + +class CryptoProcessor { + + private static final Logger LOG = Logger.getLogger(CryptoProcessor.class); + private static final String FEATURE = "camel-crypto"; + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(FEATURE); + } + + /** + * Remove this once this extension starts supporting the native mode. + */ + @BuildStep(onlyIf = NativeBuild.class) + @Record(value = ExecutionTime.RUNTIME_INIT) + void warnJvmInNative(JvmOnlyRecorder recorder) { + JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time + recorder.warnJvmInNative(FEATURE); // warn at runtime + } +} diff --git a/extensions-jvm/crypto/integration-test/pom.xml b/extensions-jvm/crypto/integration-test/pom.xml new file mode 100644 index 0000000..743da3c --- /dev/null +++ b/extensions-jvm/crypto/integration-test/pom.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-build-parent-it</artifactId> + <version>1.1.0-SNAPSHOT</version> + <relativePath>../../../poms/build-parent-it/pom.xml</relativePath> + </parent> + + <artifactId>camel-quarkus-crypto-integration-test</artifactId> + <name>Camel Quarkus :: Crypto (JCE) :: Integration Test</name> + <description>Integration tests for Camel Quarkus Crypto (JCE) extension</description> + + <properties> + <!-- mvnd, a.k.a. Maven Daemon: https://github.com/mvndaemon/mvnd --> + <!-- The following rule tells mvnd to build the listed deployment modules before this module. --> + <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not --> + <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. --> + <!-- Please update the rule whenever you change the dependencies of this module by running --> + <!-- mvn process-resources -Pformat from the root directory --> + <mvnd.builder.rule>camel-quarkus-crypto-deployment,camel-quarkus-support-policy-deployment</mvnd.builder.rule> + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-bom-test</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto</artifactId> + </dependency> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-resteasy</artifactId> + </dependency> + + <!-- test dependencies --> + <dependency> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-junit5</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>io.rest-assured</groupId> + <artifactId>rest-assured</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>build</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/extensions-jvm/crypto/integration-test/src/main/java/org/apache/camel/quarkus/component/crypto/it/CryptoResource.java b/extensions-jvm/crypto/integration-test/src/main/java/org/apache/camel/quarkus/component/crypto/it/CryptoResource.java new file mode 100644 index 0000000..112b8db --- /dev/null +++ b/extensions-jvm/crypto/integration-test/src/main/java/org/apache/camel/quarkus/component/crypto/it/CryptoResource.java @@ -0,0 +1,77 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.crypto.it; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import org.apache.camel.CamelContext; +import org.jboss.logging.Logger; + +@Path("/crypto") +@ApplicationScoped +public class CryptoResource { + + private static final Logger LOG = Logger.getLogger(CryptoResource.class); + + private static final String COMPONENT_CRYPTO = "crypto"; + private static final String DATAFORMAT_CRYPTO = "crypto"; + private static final String DATAFORMAT_PGP = "pgp"; + @Inject + CamelContext context; + + @Path("/load/component/crypto") + @GET + @Produces(MediaType.TEXT_PLAIN) + public Response loadComponentCrypto() throws Exception { + /* This is an autogenerated test */ + if (context.getComponent(COMPONENT_CRYPTO) != null) { + return Response.ok().build(); + } + LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_CRYPTO); + return Response.status(500, COMPONENT_CRYPTO + " could not be loaded from the Camel context").build(); + } + + @Path("/load/dataformat/crypto") + @GET + @Produces(MediaType.TEXT_PLAIN) + public Response loadDataformatCrypto() throws Exception { + /* This is an autogenerated test */ + if (context.resolveDataFormat(DATAFORMAT_CRYPTO) != null) { + return Response.ok().build(); + } + LOG.warnf("Could not load [%s] from the Camel context", DATAFORMAT_CRYPTO); + return Response.status(500, DATAFORMAT_CRYPTO + " could not be loaded from the Camel context").build(); + } + + @Path("/load/dataformat/pgp") + @GET + @Produces(MediaType.TEXT_PLAIN) + public Response loadDataformatPgp() throws Exception { + /* This is an autogenerated test */ + if (context.resolveDataFormat(DATAFORMAT_PGP) != null) { + return Response.ok().build(); + } + LOG.warnf("Could not load [%s] from the Camel context", DATAFORMAT_PGP); + return Response.status(500, DATAFORMAT_PGP + " could not be loaded from the Camel context").build(); + } +} diff --git a/extensions-jvm/crypto/integration-test/src/test/java/org/apache/camel/quarkus/component/crypto/it/CryptoTest.java b/extensions-jvm/crypto/integration-test/src/test/java/org/apache/camel/quarkus/component/crypto/it/CryptoTest.java new file mode 100644 index 0000000..3c17370 --- /dev/null +++ b/extensions-jvm/crypto/integration-test/src/test/java/org/apache/camel/quarkus/component/crypto/it/CryptoTest.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.crypto.it; + +import io.quarkus.test.junit.QuarkusTest; +import io.restassured.RestAssured; +import org.junit.jupiter.api.Test; + +@QuarkusTest +class CryptoTest { + + @Test + public void loadComponentCrypto() { + /* A simple autogenerated test */ + RestAssured.get("/crypto/load/component/crypto") + .then() + .statusCode(200); + } + + @Test + public void loadDataformatCrypto() { + /* A simple autogenerated test */ + RestAssured.get("/crypto/load/dataformat/crypto") + .then() + .statusCode(200); + } + + @Test + public void loadDataformatPgp() { + /* A simple autogenerated test */ + RestAssured.get("/crypto/load/dataformat/pgp") + .then() + .statusCode(200); + } + +} diff --git a/extensions-jvm/crypto/pom.xml b/extensions-jvm/crypto/pom.xml new file mode 100644 index 0000000..62eda2c --- /dev/null +++ b/extensions-jvm/crypto/pom.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-build-parent</artifactId> + <version>1.1.0-SNAPSHOT</version> + <relativePath>../../poms/build-parent/pom.xml</relativePath> + </parent> + + <artifactId>camel-quarkus-crypto-parent</artifactId> + <name>Camel Quarkus :: Crypto (JCE)</name> + <packaging>pom</packaging> + + <modules> + <module>deployment</module> + <module>runtime</module> + <module>integration-test</module> + </modules> +</project> diff --git a/extensions-jvm/crypto/runtime/pom.xml b/extensions-jvm/crypto/runtime/pom.xml new file mode 100644 index 0000000..534555d --- /dev/null +++ b/extensions-jvm/crypto/runtime/pom.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto-parent</artifactId> + <version>1.1.0-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>camel-quarkus-crypto</artifactId> + <name>Camel Quarkus :: Crypto (JCE) :: Runtime</name> + <description>Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE).</description> + + <properties> + <firstVersion>1.1.0</firstVersion> + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-bom</artifactId> + <version>${project.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-core</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-crypto</artifactId> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-maven-plugin</artifactId> + <executions> + <execution> + <id>update-extension-doc-page</id> + <goals><goal>update-extension-doc-page</goal></goals> + <phase>process-classes</phase> + </execution> + </executions> + </plugin> + <plugin> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-bootstrap-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <annotationProcessorPaths> + <path> + <groupId>io.quarkus</groupId> + <artifactId>quarkus-extension-processor</artifactId> + <version>${quarkus.version}</version> + </path> + </annotationProcessorPaths> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/extensions-jvm/crypto/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions-jvm/crypto/runtime/src/main/resources/META-INF/quarkus-extension.yaml new file mode 100644 index 0000000..1ec146d --- /dev/null +++ b/extensions-jvm/crypto/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -0,0 +1,32 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This is a generated file. Do not edit directly! +# To re-generate, run the following command from the top level directory: +# +# mvn -N cq:update-quarkus-metadata +# +--- +name: "Camel Crypto (JCE)" +description: "Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE)" +metadata: + unlisted: true + guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/crypto.html" + categories: + - "integration" + status: + - "preview" diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml index 8763a74..8de291a 100644 --- a/extensions-jvm/pom.xml +++ b/extensions-jvm/pom.xml @@ -57,6 +57,7 @@ <module>cometd</module> <module>corda</module> <module>couchbase</module> + <module>crypto</module> <module>debezium-mongodb</module> <module>dns</module> <module>dropbox</module> diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml index 4bfa270..bc9f230 100644 --- a/poms/bom/pom.xml +++ b/poms/bom/pom.xml @@ -610,6 +610,11 @@ </dependency> <dependency> <groupId>org.apache.camel</groupId> + <artifactId>camel-crypto</artifactId> + <version>${camel.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> <artifactId>camel-csv</artifactId> <version>${camel.version}</version> </dependency> @@ -2120,6 +2125,16 @@ </dependency> <dependency> <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto</artifactId> + <version>${camel-quarkus.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-crypto-deployment</artifactId> + <version>${camel-quarkus.version}</version> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-csv</artifactId> <version>${camel-quarkus.version}</version> </dependency>