public class PBEParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
PBEParameterSpec(byte[] salt, int iterationCount)
构建了一个基于口令的加密参数设置中定义的# PKCS 5标准。
|
PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec)
构建了一个基于口令的加密参数设置中定义的# PKCS 5标准。
|
Modifier and Type | Method and Description |
---|---|
int |
getIterationCount()
返回迭代计数。
|
AlgorithmParameterSpec |
getParameterSpec()
返回密码算法参数规范。
|
byte[] |
getSalt()
返回盐。
|
public PBEParameterSpec(byte[] salt, int iterationCount)
salt
-盐。
salt
的内容复制到防止后续的修改。
iterationCount
-迭代计数。
NullPointerException
-如果
salt
是空的。
public PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec)
salt
-盐。
salt
的内容复制到防止后续的修改。
iterationCount
-迭代计数。
paramSpec
-密码算法参数规范,这可能是空的。
NullPointerException
-如果
salt
是空的。
public byte[] getSalt()
public int getIterationCount()
public AlgorithmParameterSpec getParameterSpec()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.