public class Argon2JvmEncoder extends AbstractArgon2PasswordEncoder
DEFAULT_HASH_LENGTH, DEFAULT_ITERATIONS, DEFAULT_MEMORY_SIZE, DEFAULT_PARALLELISM, DEFAULT_SALT_LENGTH, DEFAULT_TYPE, KEY_HASH_LENGTH, KEY_ITERATIONS, KEY_MEMORY_SIZE, KEY_PARALLELISM, KEY_SALT_LENGTH, KEY_TYPE, TYPE_D, TYPE_I, TYPE_IDKEY_PREFIX, KEY_RANDOM| Constructor and Description |
|---|
Argon2JvmEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigure(Properties parameters,
String prefix)
Configures and initializes the encoder using the given Properties.
|
String |
doEncode(CharSequence rawPassword)
Encode the raw password.
|
boolean |
isMatch(CharSequence rawPassword,
String encodedPassword)
Verify the encoded password obtained from storage matches the submitted raw password after it too is encoded.
|
configure, decodeBytes, encode, encodeBytes, getCharset, getPropertyName, getRandom, getTextEncoder, matches, parseBoolean, parseInstance, parseInt, parseInt, parseString, toBytespublic void doConfigure(Properties parameters, String prefix)
doConfigure in class AbstractConfigurablePasswordEncoderparameters - the parametersprefix - the prefixpublic String doEncode(CharSequence rawPassword)
doEncode in class AbstractConfigurablePasswordEncoderrawPassword - the raw password to encodepublic boolean isMatch(CharSequence rawPassword, String encodedPassword)
isMatch in class AbstractConfigurablePasswordEncoderrawPassword - the raw password to encode and matchencodedPassword - the encoded password from storage to compare with