Class PBKDF2KeyWithParameters
java.lang.Object
org.bouncycastle.jcajce.PBKDF2Key
org.bouncycastle.jcajce.PBKDF2KeyWithParameters
- All Implemented Interfaces:
Serializable, Key, PBEKey, SecretKey, Destroyable, PBKDFKey
-
Field Summary
Fields inherited from interface PBEKey
serialVersionUIDFields inherited from interface SecretKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionPBKDF2KeyWithParameters(char[] password, CharToByteConverter converter, byte[] salt, int iterationCount) Basic constructor for a password based key with generation parameters using FIPS PBKDF. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the iteration count to use in the key derivation function.byte[]getSalt()Return the salt to use in the key derivation function.Methods inherited from class PBKDF2Key
getAlgorithm, getEncoded, getFormat, getPasswordMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Destroyable
destroy, isDestroyedMethods inherited from interface Key
getAlgorithm, getEncoded, getFormatMethods inherited from interface PBEKey
getPassword
-
Constructor Details
-
PBKDF2KeyWithParameters
public PBKDF2KeyWithParameters(char[] password, CharToByteConverter converter, byte[] salt, int iterationCount) Basic constructor for a password based key with generation parameters using FIPS PBKDF.- Parameters:
password- password to use.converter- converter to use for transforming characters into bytes.salt- salt for generation algorithmiterationCount- iteration count for generation algorithm.
-
-
Method Details
-
getSalt
-
getIterationCount
public int getIterationCount()Return the iteration count to use in the key derivation function.- Specified by:
getIterationCountin interfacePBEKey- Returns:
- the iteration count to use in the KDF.
-