// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-crypto"]
= Crypto (JCE)
:linkattrs:
:cq-artifact-id: camel-quarkus-crypto
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE).
:cq-deprecated: false
:cq-jvm-since: 1.1.0
:cq-native-since: 1.2.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##1.2.0##
endif::[]

Sign and verify exchanges using the Signature Service of the Java Cryptographic Extension (JCE).

[id="extensions-crypto-whats-inside"]
== What's inside

* xref:{cq-camel-components}:dataformats:crypto-dataformat.adoc[Crypto (Java Cryptographic Extension) data format]
* xref:{cq-camel-components}::crypto-component.adoc[Crypto (JCE) component], URI syntax: `crypto:cryptoOperation:name`

Please refer to the above links for usage and configuration details.

[id="extensions-crypto-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-crypto[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-crypto</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-crypto-usage"]
== Usage
[id="extensions-crypto-usage-security-provider"]
=== Security Provider

Extension requires BouncyCastle provider and also utilizes the quarkus security extension (see https://quarkus.io/guides/security-customization#registering-security-providers[security providers registration doc])
If there is no `BC*` provider registered (by `quarkus.security.security-providers` property).
The `BC` provider is registered.

[id="extensions-crypto-usage-fips"]
=== FIPS

When running the `crypto` extension on FIPS enabled system any FIPS-compliant Java Security Provider (such as BCFIPS) has to be used.

* In the case of BCFIPS, please add BCFIPS dependency and `quarkus-security` (see the https://quarkus.io/guides/security-customization#bouncy-castle-fips[guide] for more information)
```
<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bc-fips</artifactId>
</dependency>
<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-security</artifactId>
</dependency>
```
and register BCFIPS provider with following proprerty:
```
quarkus.security.security-providers=BCFIPS
```
* Alternatively, you can add different FIPS compliant provider. Make Sure that the provider is registered.





[id="extensions-crypto-camel-quarkus-limitations"]
== Camel Quarkus limitations





[id="extensions-crypto-ssl-in-native-mode"]
== SSL in native mode

This extension auto-enables SSL support in native mode. Hence you do not need to add
`quarkus.ssl.native=true` to your `application.properties` yourself. See also
https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide].
