Md4PasswordEncoder@Deprecated public class Md4PasswordEncoder extends BaseDigestPasswordEncoder
If a null password is presented, it will be treated as an empty
String ("") password.
As MD4 is a one-way hash, the salt can contain any characters.
NOTE: This password encoder is only included for backwards compatability with legacy applications, it's not secure, don't use it for anything new!
| Constructor and Description |
|---|
Md4PasswordEncoder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encodePassword(java.lang.String rawPass,
java.lang.Object salt)
Deprecated.
Encodes the rawPass using an MD4 message digest.
|
java.lang.String |
getAlgorithm()
Deprecated.
|
boolean |
isPasswordValid(java.lang.String encPass,
java.lang.String rawPass,
java.lang.Object salt)
Deprecated.
Takes a previously encoded password and compares it with a raw password after
mixing in the salt and encoding that value.
|
getEncodeHashAsBase64, setEncodeHashAsBase64demergePasswordAndSalt, mergePasswordAndSaltpublic java.lang.String encodePassword(java.lang.String rawPass,
java.lang.Object salt)
rawPass - The plain text passwordsalt - The salt to sprinklepublic boolean isPasswordValid(java.lang.String encPass,
java.lang.String rawPass,
java.lang.Object salt)
encPass - previously encoded passwordrawPass - plain text passwordsalt - salt to mix into passwordpublic java.lang.String getAlgorithm()