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 forCryptoDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoDataFormat.Builder
algorithm(String algorithm)
The JCE algorithm name indicating the cryptographic algorithm that will be used.CryptoDataFormat.Builder
algorithmParameterRef(String algorithmParameterRef)
A JCE AlgorithmParameterSpec used to initialize the Cipher.CryptoDataFormat.Builder
bufferSize(int bufferSize)
The size of the buffer used in the signature process.CryptoDataFormat.Builder
bufferSize(String bufferSize)
The size of the buffer used in the signature process.CryptoDataFormat.Builder
cryptoProvider(String cryptoProvider)
The name of the JCE Security Provider that should be used.CryptoDataFormat
end()
Ends the build of the data format.CryptoDataFormat.Builder
initVectorRef(String initVectorRef)
Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.CryptoDataFormat.Builder
inline(boolean inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream.CryptoDataFormat.Builder
inline(String inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream.CryptoDataFormat.Builder
keyRef(String keyRef)
Refers to the secret key to lookup from the register to use.CryptoDataFormat.Builder
macAlgorithm(String macAlgorithm)
The JCE algorithm name indicating the Message Authentication algorithm.CryptoDataFormat.Builder
shouldAppendHMAC(boolean shouldAppendHMAC)
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.CryptoDataFormat.Builder
shouldAppendHMAC(String shouldAppendHMAC)
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.
-
-
-
Method Detail
-
algorithm
public CryptoDataFormat.Builder algorithm(String algorithm)
The JCE algorithm name indicating the cryptographic algorithm that will be used.
-
cryptoProvider
public CryptoDataFormat.Builder cryptoProvider(String cryptoProvider)
The name of the JCE Security Provider that should be used.
-
keyRef
public CryptoDataFormat.Builder keyRef(String keyRef)
Refers to the secret key to lookup from the register to use.
-
initVectorRef
public CryptoDataFormat.Builder initVectorRef(String initVectorRef)
Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.
-
algorithmParameterRef
public CryptoDataFormat.Builder algorithmParameterRef(String algorithmParameterRef)
A JCE AlgorithmParameterSpec used to initialize the Cipher. Will lookup the type using the given name as aAlgorithmParameterSpec
type.
-
bufferSize
public CryptoDataFormat.Builder bufferSize(String bufferSize)
The size of the buffer used in the signature process.
-
bufferSize
public CryptoDataFormat.Builder bufferSize(int bufferSize)
The size of the buffer used in the signature process.
-
macAlgorithm
public CryptoDataFormat.Builder macAlgorithm(String macAlgorithm)
The JCE algorithm name indicating the Message Authentication algorithm.
-
shouldAppendHMAC
public CryptoDataFormat.Builder shouldAppendHMAC(String shouldAppendHMAC)
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.
-
shouldAppendHMAC
public CryptoDataFormat.Builder shouldAppendHMAC(boolean shouldAppendHMAC)
Flag indicating that a Message Authentication Code should be calculated and appended to the encrypted data.
-
inline
public CryptoDataFormat.Builder inline(String inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false.
-
inline
public CryptoDataFormat.Builder inline(boolean inline)
Flag indicating that the configured IV should be inlined into the encrypted data stream. Is by default false.
-
end
public CryptoDataFormat 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.
-
-