Class PBKDF1KeyWithParameters

    • Constructor Detail

      • PBKDF1KeyWithParameters

        public PBKDF1KeyWithParameters​(char[] password,
                                       CharToByteConverter converter,
                                       byte[] salt,
                                       int iterationCount)
        Basic constructor for a password based key with generation parameters for PBKDF1.
        Parameters:
        password - password to use.
        converter - the converter to use to turn the char array into octets.
        salt - salt for generation algorithm
        iterationCount - iteration count for generation algorithm.
    • Method Detail

      • getSalt

        public byte[] getSalt()
        Return the salt to use in the key derivation function.
        Specified by:
        getSalt in interface PBEKey
        Returns:
        the salt to use in the KDF.
      • getIterationCount

        public int getIterationCount()
        Return the iteration count to use in the key derivation function.
        Specified by:
        getIterationCount in interface PBEKey
        Returns:
        the iteration count to use in the KDF.