Package org.bouncycastle.jcajce
Class PBKDF1KeyWithParameters
java.lang.Object
org.bouncycastle.jcajce.PBKDF1Key
org.bouncycastle.jcajce.PBKDF1KeyWithParameters
- All Implemented Interfaces:
Serializable
,Key
,PBEKey
,SecretKey
,Destroyable
,PBKDFKey
A password based key for use with PBKDF1 as defined in PKCS#5 with full PBE parameters.
- See Also:
-
Field Summary
Fields inherited from interface javax.crypto.interfaces.PBEKey
serialVersionUID
Fields inherited from interface javax.crypto.SecretKey
serialVersionUID
-
Constructor Summary
ConstructorsConstructorDescriptionPBKDF1KeyWithParameters
(char[] password, CharToByteConverter converter, byte[] salt, int iterationCount) Basic constructor for a password based key with generation parameters for PBKDF1. -
Method Summary
Modifier and TypeMethodDescriptionint
Return 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 org.bouncycastle.jcajce.PBKDF1Key
getAlgorithm, getEncoded, getFormat, getPassword
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
Methods inherited from interface javax.crypto.interfaces.PBEKey
getPassword
-
Constructor Details
-
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 algorithmiterationCount
- iteration count for generation algorithm.
-
-
Method Details
-
getSalt
public byte[] getSalt()Return the salt to use in the key derivation function. -
getIterationCount
public int getIterationCount()Return the iteration count to use in the key derivation function.- Specified by:
getIterationCount
in interfacePBEKey
- Returns:
- the iteration count to use in the KDF.
-