public class PBKDF2KeySpec
extends javax.crypto.spec.PBEKeySpec
Constructor and Description |
---|
PBKDF2KeySpec(char[] password,
byte[] salt,
int iterationCount,
int keySize,
AlgorithmIdentifier prf)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getPrf()
Return an AlgorithmIdentifier representing the PRF.
|
boolean |
isDefaultPrf()
Return true if this spec is for the default PRF (HmacSHA1), false otherwise.
|
public PBKDF2KeySpec(char[] password, byte[] salt, int iterationCount, int keySize, AlgorithmIdentifier prf)
password
- password to use as the seed of the PBE key generator.salt
- salt to use in the generator,iterationCount
- iteration count to use in the generator.keySize
- size of the key to be generated (in bits).prf
- identifier and parameters for the PRF algorithm to use.public boolean isDefaultPrf()
public AlgorithmIdentifier getPrf()