How to use springcryptoutils.com in Fuse ?

Solution Unverified - Updated -

Issue

<crypt:keystore id="keyStore"
                  location="classpath:shared.jceks"
                  password="sharedKeystorePassword"
                  type="JCEKS"></crypt:keystore>

  <crypt:secretKey id="secretKey"
                   keystore-ref="keyStore"
                   alias="shared"
                   password="sharedKeyPassword"></crypt:secretKey>

  <camelContext xmlns="http://camel.apache.org/schema/spring">
    <dataFormats>
      <crypto id="sharedKeyCrypto" algorithm="DES" keyRef="secretKey"></crypto>
    </dataFormats>
    <route>
      <from uri="direct:encrypt"></from>
      <log message="Encrypting message"></log>
      <marshal ref="sharedKeyCrypto"></marshal>
      <log message="Message encrypted: ${body}"></log>
      <to uri="direct:decrypt"></to>
    </route>

Environment

  • Red Hat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content