java.io.Serializable
, java.security.Key
, javax.crypto.interfaces.PBEKey
, javax.crypto.SecretKey
, javax.security.auth.Destroyable
, PBKDFKey
public class PBKDF1KeyWithParameters extends PBKDF1Key implements javax.crypto.interfaces.PBEKey
Constructor | Description |
---|---|
PBKDF1KeyWithParameters(char[] password,
CharToByteConverter converter,
byte[] salt,
int iterationCount) |
Basic constructor for a password based key with generation parameters for PBKDF1.
|
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm, getEncoded, getFormat, getPassword
public PBKDF1KeyWithParameters(char[] password, CharToByteConverter converter, byte[] salt, int iterationCount)
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.public byte[] getSalt()
getSalt
in interface javax.crypto.interfaces.PBEKey
public int getIterationCount()
getIterationCount
in interface javax.crypto.interfaces.PBEKey