public class PBEParameterSpec extends Object implements AlgorithmParameterSpec
Password based encryption is described in PKCS #5.
| Constructor and Description |
|---|
PBEParameterSpec(byte[] salt,
int iterationCount)
Creates a new
PBEParameterSpec with the specified salt and
iteration count. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIterationCount()
Returns the iteration count.
|
byte[] |
getSalt()
Returns a copy to the salt.
|
public PBEParameterSpec(byte[] salt,
int iterationCount)
PBEParameterSpec with the specified salt and
iteration count.salt - the salt.iterationCount - the iteration count.NullPointerException - if salt is null.