Most visited

Recently visited

Added in API level 1

PBEParameterSpec

public class PBEParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
    javax.crypto.spec.PBEParameterSpec


该类指定了与 PKCS #5标准中定义的基于密码的加密(PBE)一起使用的一组参数。

摘要(Summary)

Public constructors

PBEParameterSpec(byte[] salt, int iterationCount)

构建PKCS#5标准中定义的基于密码的加密参数集。

公共方法(Public methods)

int getIterationCount()

返回迭代计数。

byte[] getSalt()

返回盐。

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

PBEParameterSpec

Added in API level 1
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.

公共方法(Public methods)

getIterationCount

Added in API level 1
int getIterationCount ()

返回迭代计数。

返回(Returns)
int the iteration count

getSalt

Added in API level 1
byte[] getSalt ()

返回盐。

返回(Returns)
byte[] the salt. Returns a new array each time this method is called.

Hooray!