Class CryptoDataFormat.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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.
      • initVectorRef

        public CryptoDataFormat.Builder initVectorRef​(String initVectorRef)
        Refers to a byte array containing the Initialization Vector that will be used to initialize the Cipher.
      • 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.