Package org.bouncycastle.jcajce
Class PBKDF2KeyWithParameters
- java.lang.Object
 - 
- org.bouncycastle.jcajce.PBKDF2Key
 - 
- org.bouncycastle.jcajce.PBKDF2KeyWithParameters
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.security.Key,javax.crypto.interfaces.PBEKey,javax.crypto.SecretKey,javax.security.auth.Destroyable,PBKDFKey
public class PBKDF2KeyWithParameters extends PBKDF2Key implements javax.crypto.interfaces.PBEKey
A password based key for use with PBKDF2 as defined in PKCS#5 with full PBE parameters.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description PBKDF2KeyWithParameters(char[] password, CharToByteConverter converter, byte[] salt, int iterationCount)Basic constructor for a password based key with generation parameters using FIPS PBKDF. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIterationCount()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.PBKDF2Key
getAlgorithm, getEncoded, getFormat, getPassword 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
getSalt
public byte[] getSalt()
Return the salt to use in the key derivation function.- Specified by:
 getSaltin interfacejavax.crypto.interfaces.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:
 getIterationCountin interfacejavax.crypto.interfaces.PBEKey- Returns:
 - the iteration count to use in the KDF.
 
 
 - 
 
 -