GenericSaltedPasswordEncoder introduction.
Internally delegates to DigestCalculator@Deprecated public class MD5PasswordEncoder extends java.lang.Object implements PasswordEncoder
| Constructor and Description |
|---|
MD5PasswordEncoder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
calculateMD5(java.lang.String plain)
Deprecated.
|
boolean |
check(java.lang.String uid,
java.lang.String encoded,
java.lang.String plain)
Deprecated.
Calculates the hash of 'plain' and compare it with the value of 'encoded'
|
java.lang.String |
decode(java.lang.String encoded)
Deprecated.
Decode the given
encoded password. |
java.lang.String |
encode(java.lang.String uid,
java.lang.String plain)
Deprecated.
Returns the encoded password string based on the implementation of this interface and by the given
plain password. |
protected java.lang.String calculateMD5(java.lang.String plain)
public java.lang.String encode(java.lang.String uid,
java.lang.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(java.lang.String uid,
java.lang.String encoded,
java.lang.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 java.lang.String decode(java.lang.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 © 2018 SAP SE. All Rights Reserved.