com.pingidentity.opentoken.util
Class PasswordKeyGenerator
java.lang.Object
com.pingidentity.opentoken.util.PasswordKeyGenerator
public class PasswordKeyGenerator
- extends Object
Method Summary |
static SecretKey |
generate(String password,
int cipherSuite,
boolean useSunJCE)
|
static SecretKey |
generate(String password,
int cipherSuite,
byte[] salt,
int iterations,
boolean useSunJCE)
Derive a key from a password string, using PBKDF2 (RFC 2898) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generate
public static SecretKey generate(String password,
int cipherSuite,
boolean useSunJCE)
generate
public static SecretKey generate(String password,
int cipherSuite,
byte[] salt,
int iterations,
boolean useSunJCE)
- Derive a key from a password string, using PBKDF2 (RFC 2898)
- Parameters:
password
- cipherSuite
- salt
-
- Returns:
Copyright © 2012. All Rights Reserved.