public class PBEParameterSpec
extends Object implements AlgorithmParameterSpec
| java.lang.Object | |
| javax.crypto.spec.PBEParameterSpec | |
该类指定了与 PKCS #5标准中定义的基于密码的加密(PBE)一起使用的一组参数。
Public constructors |
|
|---|---|
PBEParameterSpec(byte[] salt, int iterationCount) 构建PKCS#5标准中定义的基于密码的加密参数集。 |
|
公共方法(Public methods) |
|
|---|---|
int |
getIterationCount() 返回迭代计数。 |
byte[] |
getSalt() 返回盐。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
PBEParameterSpec (byte[] salt,
int iterationCount)
构建PKCS#5标准中定义的基于密码的加密参数集。
| 参数(Parameters) | |
|---|---|
salt |
byte: the salt. The contents of salt are copied to protect against subsequent modification. |
iterationCount |
int: the iteration count. |
| 抛出异常(Throws) | |
|---|---|
NullPointerException |
if salt is null. |
int getIterationCount ()
返回迭代计数。
| 返回(Returns) | |
|---|---|
int |
the iteration count |
byte[] getSalt ()
返回盐。
| 返回(Returns) | |
|---|---|
byte[] |
the salt. Returns a new array each time this method is called. |