public class PBKDF2KeyWithParameters extends PBKDF2Key implements PBEKey
serialVersionUID
Constructor and Description |
---|
PBKDF2KeyWithParameters(char[] password,
org.bouncycastle.crypto.CharToByteConverter converter,
byte[] salt,
int iterationCount)
Basic constructor for a password based key with generation parameters using FIPS PBKDF.
|
Modifier and Type | Method and Description |
---|---|
int |
getIterationCount()
Return the iteration count to use in the key derivation function.
|
byte[] |
getSalt()
Return the salt to use in the key derivation function.
|
getAlgorithm, getEncoded, getFormat, getPassword
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPassword
getAlgorithm, getEncoded, getFormat
destroy, isDestroyed
public PBKDF2KeyWithParameters(char[] password, org.bouncycastle.crypto.CharToByteConverter converter, byte[] salt, int iterationCount)
password
- password to use.converter
- converter to use for transforming characters into bytes.salt
- salt for generation algorithmiterationCount
- iteration count for generation algorithm.public byte[] getSalt()
public int getIterationCount()
getIterationCount
in interface PBEKey
Copyright © 2017 BouncyCastle.org. All rights reserved.