de.flexiprovider.core.kdf
Class PBKDF2ParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.core.kdf.PBKDF2ParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class PBKDF2ParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class represents parameters for the PBKDF2 key derivation function (OID 1.2.840.113549.2.7) used for passphrase based encryption.

Author:
Thomas Wahrenbruch, Martin Döring

Field Summary
static java.lang.String DEFAULT_PRF_OID
          The OID of the default pseudo-random function (HmacWithSHA1)
 
Constructor Summary
PBKDF2ParameterSpec(byte[] salt, int iterationCount, int keySize)
          Construct new PBKDF2 parameters from the given salt, iteration count, and key size.
 
Method Summary
 int getIterationCount()
           
 int getKeySize()
           
 byte[] getSalt()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PRF_OID

public static final java.lang.String DEFAULT_PRF_OID
The OID of the default pseudo-random function (HmacWithSHA1)
Constructor Detail

PBKDF2ParameterSpec

public PBKDF2ParameterSpec(byte[] salt,
                           int iterationCount,
                           int keySize)
Construct new PBKDF2 parameters from the given salt, iteration count, and key size.
Parameters:
salt - the salt
iterationCount - the iteration count
keySize - the key size
Method Detail

getSalt

public byte[] getSalt()
Returns:
the salt

getIterationCount

public int getIterationCount()
Returns:
the iteration count

getKeySize

public int getKeySize()
Returns:
the key size

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a human readable form of the parameters