iaik.security.pbe
Class PBEGenParameterSpec

java.lang.Object
  |
  +--iaik.security.pbe.PBEGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class PBEGenParameterSpec
extends Object
implements AlgorithmParameterSpec

This class specifies salt length and iteration count to be used for generating algorithm parameters for password based encryption. An instance of this class may be necessary for initializing a PBEParameterGenerator to create PBEParameters. Salt and iteration count are used for creating key material from a password according to PKCS#5/PKCS#12.

Version:
File Revision 11
See Also:
PBEParameterGenerator, PBEParameters

Constructor Summary
PBEGenParameterSpec(int saltLength, int iterationCount)
          Specifies the PBE key generation parameters, using a salt length and an iteration count.
 
Method Summary
 int getIterationCount()
          Returns the number of iterations when generating the key and the initialization vector (IV).
 int getSaltLength()
          Returns the length of the salt in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBEGenParameterSpec

public PBEGenParameterSpec(int saltLength,
                           int iterationCount)
Specifies the PBE key generation parameters, using a salt length and an iteration count.
Parameters:
saltLength - the length of the salt in bytes
iterationCount - the number of iterations
Method Detail

getSaltLength

public int getSaltLength()
Returns the length of the salt in bytes.
Returns:
the length of the salt in bytes

getIterationCount

public int getIterationCount()
Returns the number of iterations when generating the key and the initialization vector (IV).
Returns:
the iteration count

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK