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!