Class MD5PasswordEncoder
- java.lang.Object
-
- de.hybris.platform.persistence.security.MD5PasswordEncoder
-
- All Implemented Interfaces:
PasswordEncoder,java.io.Serializable
- Direct Known Subclasses:
SaltedMD5PasswordEncoder
@Deprecated public class MD5PasswordEncoder extends java.lang.Object implements PasswordEncoder
Deprecated.since ages - deprecated due toGenericSaltedPasswordEncoderintroduction. Internally delegates toDigestCalculator- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MD5PasswordEncoder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringcalculateMD5(java.lang.String plain)Deprecated.booleancheck(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.Stringdecode(java.lang.String encoded)Deprecated.Decode the givenencodedpassword.java.lang.Stringencode(java.lang.String uid, java.lang.String plain)Deprecated.Returns the encoded password string based on the implementation of this interface and by the givenplainpassword.
-
-
-
Method Detail
-
calculateMD5
protected java.lang.String calculateMD5(java.lang.String plain)
Deprecated.
-
encode
public java.lang.String encode(java.lang.String uid, java.lang.String plain)Deprecated.Description copied from interface:PasswordEncoderReturns the encoded password string based on the implementation of this interface and by the givenplainpassword. The uid can be used as additional salt (see SaltedMD5PasswordEncoder).- Specified by:
encodein interfacePasswordEncoder- Parameters:
uid- mostly userID, mostly not usedplain- the plain password- Returns:
- the encoded password
- See Also:
SaltedMD5PasswordEncoder,PlainTextPasswordEncoder
-
check
public 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'- Specified by:
checkin interfacePasswordEncoder- Parameters:
uid- unusedencoded- could be 'null'plain- could be 'null'- Returns:
- true if hash of 'plain' is equals to 'encoded'
- See Also:
check(java.lang.String, java.lang.String, java.lang.String)
-
decode
public java.lang.String decode(java.lang.String encoded) throws EJBCannotDecodePasswordExceptionDeprecated.Description copied from interface:PasswordEncoderDecode the givenencodedpassword. Throws exception if this is not possible.- Specified by:
decodein interfacePasswordEncoder- Parameters:
encoded- the encoded password- Returns:
- the decoded password
- Throws:
EJBCannotDecodePasswordException- if the password cannot be decoded. (MD5 passwords cannot be decoded)- See Also:
MD5PasswordEncoder
-
-