public class PBKDF2Parameters extends KeyDerivationFunctionParameters
Constructor and Description |
---|
PBKDF2Parameters()
Initialise parameters with default values.
|
PBKDF2Parameters(int keySize)
Initialise parameters with a key length and default randomized values.
|
PBKDF2Parameters(int keySize,
byte[] salt)
Initialise parameters with a key length, a salt and a randomized iteration count.
|
PBKDF2Parameters(int keySize,
byte[] salt,
SecureRandom random)
Initialise parameters with a key length, a salt and a randomized iteration count.
|
PBKDF2Parameters(int keySize,
byte[] salt,
String prf)
Initialise parameters with a key length, a salt, a pseudo random function and a randomized iteration count.
|
PBKDF2Parameters(int keySize,
byte[] salt,
String prf,
SecureRandom random)
Initialise parameters with a key length, a salt, a pseudo random function and a randomized iteration count.
|
PBKDF2Parameters(int keySize,
int iterationCount)
Initialise parameters with a key length, fixed iteration count and a randomized salt.
|
PBKDF2Parameters(int keySize,
int iterationCount,
byte[] salt)
Initialise parameters with a key length, an iteration count and a salt.
|
PBKDF2Parameters(int keySize,
int iterationCount,
byte[] salt,
String prf)
Initialise parameters with a key length, an iteration count and a salt.
|
PBKDF2Parameters(int keySize,
int iterationCount,
SecureRandom random)
Initialise parameters with a key length, fixed iteration count and a randomized salt.
|
PBKDF2Parameters(int keySize,
int iterationCount,
String prf)
Initialise parameters with a key length, fixed iteration count, a pseudo random function and a randomized salt.
|
PBKDF2Parameters(int keySize,
int iterationCount,
String prf,
SecureRandom random)
Initialise parameters with a key length, fixed iteration count, a pseudo random function and a randomized salt.
|
PBKDF2Parameters(int keySize,
SecureRandom random)
Initialise parameters with a key length and default randomized values.
|
PBKDF2Parameters(int keySize,
String prf)
Initialise parameters with a key length, a pseudo random function and default randomized values.
|
PBKDF2Parameters(int keySize,
String prf,
SecureRandom random)
Initialise parameters with a key length, a pseudo random function and default randomized values.
|
PBKDF2Parameters(SecureRandom random)
Initialise parameters with default values.
|
PBKDF2Parameters(String prf)
Initialise parameters with default or random values and the given pseudo random function.
|
PBKDF2Parameters(String prf,
SecureRandom random)
Initialise parameters with default or random values and the given pseudo random function.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithmName() |
int |
getIterationCount() |
String |
getPseudoRandomFuntionHint() |
byte[] |
getSalt() |
getKeySize
public PBKDF2Parameters()
public PBKDF2Parameters(SecureRandom random)
random
- a random source to get randomized values.public PBKDF2Parameters(String prf)
prf
- a pseudo random function hint.public PBKDF2Parameters(String prf, SecureRandom random)
prf
- a pseudo random function hint.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.public PBKDF2Parameters(int keySize, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, String prf)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.prf
- a pseudo random function hint.public PBKDF2Parameters(int keySize, String prf, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.prf
- a pseudo random function hint.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, int iterationCount)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.public PBKDF2Parameters(int keySize, int iterationCount, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, int iterationCount, String prf)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.prf
- a pseudo random function hint.public PBKDF2Parameters(int keySize, int iterationCount, String prf, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.prf
- a pseudo random function hint.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, byte[] salt)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.salt
- the salt to be mixed with the password.public PBKDF2Parameters(int keySize, byte[] salt, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.salt
- the salt to be mixed with the password.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, byte[] salt, String prf)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.salt
- the salt to be mixed with the password.prf
- a pseudo random function hint.public PBKDF2Parameters(int keySize, byte[] salt, String prf, SecureRandom random)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.salt
- the salt to be mixed with the password.prf
- a pseudo random function hint.random
- a random source to get randomized values.public PBKDF2Parameters(int keySize, int iterationCount, byte[] salt)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.salt
- the salt to be mixed with the password.public PBKDF2Parameters(int keySize, int iterationCount, byte[] salt, String prf)
keySize
- Size of key to be generated in bytes. A negative value means that the key length should be
smartly deducted from the context of use.iterationCount
- the number of iterations the "mixing" function is to be applied for.salt
- the salt to be mixed with the password.prf
- the pseudo random function hint to be used to retrieve the pseudo random function.public String getAlgorithmName()
getAlgorithmName
in class KeyDerivationFunctionParameters
public int getIterationCount()
public byte[] getSalt()
public String getPseudoRandomFuntionHint()
Copyright © 2004–2022 XWiki. All rights reserved.