public final class BKDF extends Object
| Modifier and Type | Method and Description |
|---|---|
static KeyDerivationFunction |
createKdf()
Create a fully usable KDF backed by BCrypt to generate key material for e.g.
|
static KeyDerivationFunction |
createKdf(Version version)
Create a fully usable KDF backed by BCrypt to generate key material for e.g.
|
static PasswordHasher |
createPasswordHasher()
Create a password hasher to use BKDF password hash scheme.
|
static PasswordHasher |
createPasswordHasher(Version version)
Create a password hasher to use BKDF password hash scheme with given config version.
|
static PasswordHasher |
createPasswordHasher(Version version,
SecureRandom secureRandom)
Create a password hasher to use BKDF password hash scheme with given config version.
|
static PasswordHashUpgrader |
createPasswordHashUpgrader()
Create a password hasher upgrader, which can be used to upgrade the cost factor of existing password hashes.
|
static PasswordHashUpgrader |
createPasswordHashUpgrader(SecureRandom secureRandom)
Create a password hasher upgrader, which can be used to upgrade the cost factor of existing password hashes.
|
static PasswordHashVerifier |
createPasswordHashVerifier()
Create a new instance of password hash verifier.
|
public static PasswordHasher createPasswordHasher()
SecureRandompublic static PasswordHasher createPasswordHasher(Version version)
version - used config versionpublic static PasswordHasher createPasswordHasher(Version version, SecureRandom secureRandom)
version - used config versionsecureRandom - to use for generating entropy for e.g. the saltpublic static PasswordHashVerifier createPasswordHashVerifier()
This verifies hashes generated by createPasswordHasher().
public static PasswordHashUpgrader createPasswordHashUpgrader()
public static PasswordHashUpgrader createPasswordHashUpgrader(SecureRandom secureRandom)
secureRandom - to use for generating entropy for e.g. the saltpublic static KeyDerivationFunction createKdf(Version version)
version - specific protocol versionpublic static KeyDerivationFunction createKdf()
Copyright © 2018. All rights reserved.