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. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_PRF_OID
public static final java.lang.String DEFAULT_PRF_OID
- The OID of the default pseudo-random function (HmacWithSHA1)
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 saltiterationCount - the iteration countkeySize - the key size
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