public interface Pbkdf2
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(String password)
Generate the secret key
|
byte[] |
encrypt(String password,
byte[] salt)
Generate the secret key
|
byte[] |
encrypt(String password,
byte[] salt,
int iterations)
Generate the secret key
|
SecretKey |
generateSecretKey(String password) |
SecretKey |
generateSecretKey(String password,
byte[] salt,
int iterations) |
boolean |
validate(String password,
byte[] encryptedPassword,
byte[] salt)
Validate the generated secret key
|
byte[] encrypt(String password, byte[] salt, int iterations) throws InvalidKeySpecException
password - salt - iterations - InvalidKeySpecExceptionbyte[] encrypt(String password, byte[] salt) throws InvalidKeySpecException
password - salt - InvalidKeySpecExceptionbyte[] encrypt(String password) throws InvalidKeySpecException
password - InvalidKeySpecExceptionboolean validate(String password, byte[] encryptedPassword, byte[] salt) throws InvalidKeySpecException
password - encryptedPassword - salt - InvalidKeySpecExceptionSecretKey generateSecretKey(String password, byte[] salt, int iterations) throws InvalidKeySpecException
InvalidKeySpecExceptionSecretKey generateSecretKey(String password) throws InvalidKeySpecException
InvalidKeySpecExceptionCopyright © 2016 JBoss by Red Hat. All Rights Reserved.