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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderis a specific builder forCryptoDataFormat. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAlgorithm(String algorithm) The JCE algorithm name indicating the cryptographic algorithm that will be used.voidsetAlgorithmParameterRef(String algorithmParameterRef) A JCE AlgorithmParameterSpec used to initialize the Cipher.voidsetBufferSize(String bufferSize) The size of the buffer used in the signature process.voidsetCryptoProvider(String cryptoProvider) The name of the JCE Security Provider that should be used.voidsetInitVectorRef(String initVectorRef) Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.voidFlag indicating that the configured IV should be inlined into the encrypted data stream.voidRefers to the secret key to lookup from the register to use.voidsetMacAlgorithm(String macAlgorithm) The JCE algorithm name indicating the Message Authentication algorithm.voidsetShouldAppendHMAC(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, setDataFormatNameMethods 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 aAlgorithmParameterSpectype. -
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.
-