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 DataFormatDefinitionEncrypt and decrypt messages using Java Cryptography Extension (JCE).
-
-
Constructor Summary
Constructors Constructor Description CryptoDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()StringgetAlgorithmParameterRef()StringgetBufferSize()StringgetCryptoProvider()StringgetInitVectorRef()StringgetInline()StringgetKeyRef()StringgetMacAlgorithm()StringgetShouldAppendHMAC()voidsetAlgorithm(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.voidsetInline(String inline)Flag indicating that the configured IV should be inlined into the encrypted data stream.voidsetKeyRef(String keyRef)Refers 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, setDataFormatName
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String algorithm)
The JCE algorithm name indicating the cryptographic algorithm that will be used.
-
getCryptoProvider
public String getCryptoProvider()
-
setCryptoProvider
public void setCryptoProvider(String cryptoProvider)
The name of the JCE Security Provider that should be used.
-
getKeyRef
public String getKeyRef()
-
setKeyRef
public void setKeyRef(String keyRef)
Refers to the secret key to lookup from the register to use.
-
getInitVectorRef
public String getInitVectorRef()
-
setInitVectorRef
public void setInitVectorRef(String initVectorRef)
Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.
-
getAlgorithmParameterRef
public String getAlgorithmParameterRef()
-
setAlgorithmParameterRef
public void setAlgorithmParameterRef(String algorithmParameterRef)
A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type using the given name as aAlgorithmParameterSpectype.
-
getBufferSize
public String getBufferSize()
-
setBufferSize
public void setBufferSize(String bufferSize)
The size of the buffer used in the signature process.
-
getMacAlgorithm
public String getMacAlgorithm()
-
setMacAlgorithm
public void setMacAlgorithm(String macAlgorithm)
The JCE algorithm name indicating the Message Authentication algorithm.
-
getShouldAppendHMAC
public String getShouldAppendHMAC()
-
setShouldAppendHMAC
public void setShouldAppendHMAC(String shouldAppendHMAC)
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.
-
getInline
public String getInline()
-
setInline
public void setInline(String inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false.
-
-