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 Classes Modifier and Type Class Description static class
CryptoDataFormat.Builder
Builder
is a specific builder forCryptoDataFormat
.
-
Constructor Summary
Constructors Constructor Description CryptoDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
String
getAlgorithmParameterRef()
String
getBufferSize()
String
getCryptoProvider()
String
getInitVectorRef()
String
getInline()
String
getKeyRef()
String
getMacAlgorithm()
String
getShouldAppendHMAC()
void
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
setInline(String inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream.void
setKeyRef(String keyRef)
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
-
-
-
-
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 aAlgorithmParameterSpec
type.
-
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.
-
-