GenericSaltedPasswordEncoder introduction.
Internally delegates to DigestCalculator@Deprecated public class MD5PasswordEncoder extends Object implements PasswordEncoder
| Constructor and Description |
|---|
MD5PasswordEncoder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
calculateMD5(String plain)
Deprecated.
|
boolean |
check(String uid,
String encoded,
String plain)
Deprecated.
Calculates the hash of 'plain' and compare it with the value of 'encoded'
|
String |
decode(String encoded)
Deprecated.
Decode the given
encoded password. |
String |
encode(String uid,
String plain)
Deprecated.
Returns the encoded password string based on the implementation of this interface and by the given
plain password. |
public String encode(String uid, String plain)
PasswordEncoderplain password. The uid can be used as additional salt (see SaltedMD5PasswordEncoder).encode in interface PasswordEncoderuid - mostly userID, mostly not usedplain - the plain passwordSaltedMD5PasswordEncoder,
PlainTextPasswordEncoderpublic boolean check(String uid, String encoded, String plain)
check in interface PasswordEncoderuid - unusedencoded - could be 'null'plain - could be 'null'check(java.lang.String, java.lang.String,
java.lang.String)public String decode(String encoded) throws EJBCannotDecodePasswordException
PasswordEncoderencoded password. Throws exception if this is not possible.decode in interface PasswordEncoderencoded - the encoded passwordEJBCannotDecodePasswordException - if the password cannot be decoded. (MD5 passwords cannot be decoded)MD5PasswordEncoderCopyright © 2017 SAP SE. All Rights Reserved.