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. |