Class PBKDF2KeySpec

  • All Implemented Interfaces:
    KeySpec

    public class PBKDF2KeySpec
    extends PBEKeySpec
    Extension of PBEKeySpec which takes into account the PRF algorithm setting available in PKCS#5 PBKDF2.
    • Constructor Detail

      • PBKDF2KeySpec

        public PBKDF2KeySpec​(char[] password,
                             byte[] salt,
                             int iterationCount,
                             int keySize,
                             AlgorithmIdentifier prf)
        Base constructor.
        Parameters:
        password - password to use as the seed of the PBE key generator.
        salt - salt to use in the generator,
        iterationCount - iteration count to use in the generator.
        keySize - size of the key to be generated.
        prf - identifier and parameters for the PRF algorithm to use.