AlgorithmParameterSpecpublic class PBEParameterSpec extends Object implements AlgorithmParameterSpec
| 构造器 | 说明 |
|---|---|
PBEParameterSpec(byte[] salt,
int iterationCount) |
Constructs a parameter set for password-based encryption as defined in
the PKCS #5 standard.
|
PBEParameterSpec(byte[] salt,
int iterationCount,
AlgorithmParameterSpec paramSpec) |
Constructs a parameter set for password-based encryption as defined in
the PKCS #5 standard.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getIterationCount() |
Returns the iteration count.
|
AlgorithmParameterSpec |
getParameterSpec() |
Returns the cipher algorithm parameter specification.
|
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.public PBEParameterSpec(byte[] salt,
int iterationCount,
AlgorithmParameterSpec paramSpec)
salt - the salt. The contents of salt are copied
to protect against subsequent modification.iterationCount - the iteration count.paramSpec - the cipher algorithm parameter specification, which
may be null.NullPointerException - if salt is null.public byte[] getSalt()
public int getIterationCount()
public AlgorithmParameterSpec getParameterSpec()