Class SymmetricCipher.Builder

    • Method Detail

      • provider

        public SymmetricCipher.Builder provider​(String provider)
        Set provider of the algorithm.
        Parameters:
        provider - provider to be used
        Returns:
        updated builder instance
      • password

        public SymmetricCipher.Builder password​(char[] password)
        Set password upon which the cryptography key will be generated.
        Parameters:
        password - base password
        Returns:
        updated builder instance
      • keySize

        public SymmetricCipher.Builder keySize​(int keySize)
        Set size of the key (in bits) which should be generated. Default value is 256 bit.
        Parameters:
        keySize - size of the key
        Returns:
        updated builder instance
      • numberOfIterations

        public SymmetricCipher.Builder numberOfIterations​(int numberOfIterations)
        Number of iterations which will be used for key derivation from the password. Default value is 10000.
        Parameters:
        numberOfIterations - number of iterations
        Returns:
        updated builder instance