| Modifier and Type | Class and Description |
|---|---|
static class |
LongPasswordStrategy.BaseLongPasswordStrategy
Default base implementation
|
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()
|
static LongPasswordStrategy |
LongPasswordStrategies.strict()
|
static LongPasswordStrategy |
LongPasswordStrategies.truncate()
|
| Modifier and Type | Method and Description |
|---|---|
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. All rights reserved.