Class CryptoDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.CryptoDataFormat
@Metadata(firstVersion="2.3.0",
label="dataformat,transformation,security",
title="Crypto (Java Cryptographic Extension)")
public class CryptoDataFormat
extends DataFormatDefinition
Encrypt and decrypt messages using Java Cryptography Extension (JCE).
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forCryptoDataFormat
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAlgorithm
(String algorithm) The JCE algorithm name indicating the cryptographic algorithm that will be used.void
setAlgorithmParameterRef
(String algorithmParameterRef) A JCE AlgorithmParameterSpec used to initialize the Cipher.void
setBufferSize
(String bufferSize) The size of the buffer used in the signature process.void
setCryptoProvider
(String cryptoProvider) The name of the JCE Security Provider that should be used.void
setInitVectorRef
(String initVectorRef) Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.void
Flag indicating that the configured IV should be inlined into the encrypted data stream.void
Refers to the secret key to lookup from the register to use.void
setMacAlgorithm
(String macAlgorithm) The JCE algorithm name indicating the Message Authentication algorithm.void
setShouldAppendHMAC
(String shouldAppendHMAC) Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
CryptoDataFormat
public CryptoDataFormat()
-
-
Method Details
-
getAlgorithm
-
setAlgorithm
The JCE algorithm name indicating the cryptographic algorithm that will be used. -
getCryptoProvider
-
setCryptoProvider
The name of the JCE Security Provider that should be used. -
getKeyRef
-
setKeyRef
Refers to the secret key to lookup from the register to use. -
getInitVectorRef
-
setInitVectorRef
Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher. -
getAlgorithmParameterRef
-
setAlgorithmParameterRef
A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type using the given name as aAlgorithmParameterSpec
type. -
getBufferSize
-
setBufferSize
The size of the buffer used in the signature process. -
getMacAlgorithm
-
setMacAlgorithm
The JCE algorithm name indicating the Message Authentication algorithm. -
getShouldAppendHMAC
-
setShouldAppendHMAC
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data. -
getInline
-
setInline
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false.
-