Class CryptoDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.CryptoDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<CryptoDataFormat>
- Enclosing class:
- CryptoDataFormat
public static class CryptoDataFormat.Builder
extends Object
implements DataFormatBuilder<CryptoDataFormat>
Builder
is a specific builder for CryptoDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe JCE algorithm name indicating the cryptographic algorithm that will be used.algorithmParameterRef
(String algorithmParameterRef) A JCE AlgorithmParameterSpec used to initialize the Cipher.bufferSize
(int bufferSize) The size of the buffer used in the signature process.bufferSize
(String bufferSize) The size of the buffer used in the signature process.cryptoProvider
(String cryptoProvider) The name of the JCE Security Provider that should be used.end()
Ends the build of the data format.initVectorRef
(String initVectorRef) Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.inline
(boolean inline) Flag indicating that the configured IV should be inlined into the encrypted data stream.Flag indicating that the configured IV should be inlined into the encrypted data stream.Refers to the secret key to lookup from the register to use.macAlgorithm
(String macAlgorithm) The JCE algorithm name indicating the Message Authentication algorithm.shouldAppendHMAC
(boolean shouldAppendHMAC) Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.shouldAppendHMAC
(String shouldAppendHMAC) Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithm
The JCE algorithm name indicating the cryptographic algorithm that will be used. -
cryptoProvider
The name of the JCE Security Provider that should be used. -
keyRef
Refers to the secret key to lookup from the register to use. -
initVectorRef
Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher. -
algorithmParameterRef
A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type using the given name as aAlgorithmParameterSpec
type. -
bufferSize
The size of the buffer used in the signature process. -
bufferSize
The size of the buffer used in the signature process. -
macAlgorithm
The JCE algorithm name indicating the Message Authentication algorithm. -
shouldAppendHMAC
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data. -
shouldAppendHMAC
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data. -
inline
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false. -
inline
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false. -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<CryptoDataFormat>
- Returns:
- the data format fully built.
-