javax.crypto.spec
Class PBEParameterSpec

java.lang.Object
  |
  +--javax.crypto.spec.PBEParameterSpec

public class PBEParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec

This class specifies the set of parameters used with password-based encryption (PBE), as defined in the PKCS #5 standard.

See Also:
AlgorithmParameterSpec

Field Summary
static java.lang.String ident
           
 
Constructor Summary
PBEParameterSpec(byte[] salt, int iterationCount)
          basic constructor
 
Method Summary
 int getIterationCount()
          Returns the iteration count.
 byte[] getSalt()
          Returns the salt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

PBEParameterSpec

public PBEParameterSpec(byte[] salt,
                        int iterationCount)
basic constructor
Parameters:
salt - the byte array to use as a salt.
iterationCount - the iterationCount.
Method Detail

getSalt

public byte[] getSalt()
Returns the salt.
Returns:
the salt.

getIterationCount

public int getIterationCount()
Returns the iteration count.
Returns:
the iteration count