| Modifier and Type | Class and Description |
|---|---|
static class |
LongPasswordStrategy.BaseLongPasswordStrategy
Default base implementation
|
static class |
LongPasswordStrategy.PassThroughStrategy
A simple strategy that just returns the provided password without changing it.
|
static class |
LongPasswordStrategy.Sha512DerivationStrategy
Will use sha512 to hash given password to generate fixed 64 byte length hash value
|
static class |
LongPasswordStrategy.StrictMaxPasswordLengthStrategy
This strategy will always throw an exception to force passwords under the max length
|
static class |
LongPasswordStrategy.TruncateStrategy
Truncates the password the max possible length.
|
| Modifier and Type | Method and Description |
|---|---|
static LongPasswordStrategy |
LongPasswordStrategies.hashSha512(BCrypt.Version version)
|
static LongPasswordStrategy |
LongPasswordStrategies.none()
|
static LongPasswordStrategy |
LongPasswordStrategies.strict(BCrypt.Version version)
|
static LongPasswordStrategy |
LongPasswordStrategies.truncate(BCrypt.Version version)
|
| Modifier and Type | Method and Description |
|---|---|
static BCrypt.Verifyer |
BCrypt.verifyer(BCrypt.Version version,
LongPasswordStrategy longPasswordStrategy)
Creates a new instance of bcrypt verifier to verify a password against a given hash.
|
static BCrypt.Hasher |
BCrypt.with(BCrypt.Version version,
LongPasswordStrategy longPasswordStrategy)
Create a new instance with custom version and long password strategy
|
static BCrypt.Hasher |
BCrypt.with(BCrypt.Version version,
SecureRandom secureRandom,
LongPasswordStrategy longPasswordStrategy)
Create a new instance with custom version, secureRandom and long password strategy
|
static BCrypt.Hasher |
BCrypt.with(LongPasswordStrategy longPasswordStrategy)
Create a new instance of bcrypt hash with default version
BCrypt.Version.VERSION_2A. |
Copyright © 2018–2023. All rights reserved.