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 Details

    • Builder

      public Builder()
  • Method Details

    • 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 a AlgorithmParameterSpec 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 interface DataFormatBuilder<CryptoDataFormat>
      Returns:
      the data format fully built.