Class KeyDerivationFunctionParameters

  • Direct Known Subclasses:
    PBKDF2Parameters, ScryptParameters

    public class KeyDerivationFunctionParameters
    extends Object
    Key derivation function parameters.
    Since:
    5.4M1
    Version:
    $Id: 6b7e739d33594f6775a95aec753f228970a191ed $
    • Constructor Detail

      • KeyDerivationFunctionParameters

        public KeyDerivationFunctionParameters()
        Initialise parameters with default values.
      • KeyDerivationFunctionParameters

        public KeyDerivationFunctionParameters​(int keySize)
        Initialise parameters with a key length and default randomized values.
        Parameters:
        keySize - Size of key to be generated in bytes. A negative value means that the key length should be smartly deducted from the context of use.
    • Method Detail

      • getKeySize

        public int getKeySize()
        Returns:
        the size of the key to generate in bytes.
      • getAlgorithmName

        public String getAlgorithmName()
        Returns:
        the algorithm name (hint) of the Key Derivation Function that use these parameters.