public interface PBKDF2
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deriveKey(java.lang.String inputPassword)
Convert String-based input to internal byte array, then invoke PBKDF2.
|
byte[] |
deriveKey(java.lang.String inputPassword,
int dkLen)
Convert String-based input to internal byte array, then invoke PBKDF2.
|
PBKDF2Parameters |
getParameters()
Allow reading of configured parameters.
|
PRF |
getPseudoRandomFunction()
Get currently set Pseudo Random Function.
|
void |
setParameters(PBKDF2Parameters parameters)
Allow setting of configured parameters.
|
void |
setPseudoRandomFunction(PRF prf)
Set the Pseudo Random Function to use.
|
boolean |
verifyKey(java.lang.String inputPassword)
Convert String-based input to internal byte arrays, then invoke PBKDF2
and verify result against the reference data that is supplied in the
PBKDF2Parameters.
|
byte[] deriveKey(java.lang.String inputPassword)
inputPassword - Candidate password to compute the derived key for.byte[] deriveKey(java.lang.String inputPassword,
int dkLen)
inputPassword - Candidate password to compute the derived key for.dkLen - Specify desired key lengthboolean verifyKey(java.lang.String inputPassword)
inputPassword - Candidate password to compute the derived key for.true password match; false
incorrect passwordPBKDF2Parameters getParameters()
void setParameters(PBKDF2Parameters parameters)
parameters - The parameters object to set.PRF getPseudoRandomFunction()
void setPseudoRandomFunction(PRF prf)
prf - Pseudo Random Function to set.