javax.crypto.spec

Class PBEParameterSpec

public class PBEParameterSpec extends Object implements AlgorithmParameterSpec

A wrapper for the parameters used in PKCS #5 - Password-Based Cryptography Standard.

Since: 1.4

Constructor Summary
PBEParameterSpec(byte[] salt, int iterationCount)
Creates a new password-based encryption parameter specification.
Method Summary
intgetIterationCount()
Get the iteration count.
byte[]getSalt()
Get the salt.

Constructor Detail

PBEParameterSpec

public PBEParameterSpec(byte[] salt, int iterationCount)
Creates a new password-based encryption parameter specification.

Parameters: salt The salt. iterationCount The iteration count.

Method Detail

getIterationCount

public int getIterationCount()
Get the iteration count.

Returns: The iteration count.

getSalt

public byte[] getSalt()
Get the salt.

Returns: The salt.