public class PBEParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
PBEParameterSpec(byte[] salt,
int iterationCount)
Constructs a parameter set for password-based encryption as defined in
the PKCS #5 standard.
|
Modifier and Type | Method and Description |
---|---|
int |
getIterationCount()
Returns the iteration count.
|
byte[] |
getSalt()
Returns the salt.
|
public PBEParameterSpec(byte[] salt, int iterationCount)
salt
- the salt. The contents of salt
are copied
to protect against subsequent modification.iterationCount
- the iteration count.NullPointerException
- if salt
is null.