javax.crypto.spec
Class PBEParameterSpec

java.lang.Object
  extended by javax.crypto.spec.PBEParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

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
 int getIterationCount()
          Get the iteration count.
 byte[] getSalt()
          Get the salt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.