Class MD5PasswordEncoder
java.lang.Object
de.hybris.platform.persistence.security.MD5PasswordEncoder
- All Implemented Interfaces:
PasswordEncoder,Serializable
- Direct Known Subclasses:
SaltedMD5PasswordEncoder
@Deprecated(since="ages",
forRemoval=true)
public class MD5PasswordEncoder
extends Object
implements PasswordEncoder
Deprecated, for removal: This API element is subject to removal in a future version.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateMD5(String plain) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Calculates the hash of 'plain' and compare it with the value of 'encoded'Deprecated, for removal: This API element is subject to removal in a future version.Decode the givenencodedpassword.Deprecated, for removal: This API element is subject to removal in a future version.Returns the encoded password string based on the implementation of this interface and by the givenplainpassword.
-
Constructor Details
-
MD5PasswordEncoder
public MD5PasswordEncoder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
calculateMD5
Deprecated, for removal: This API element is subject to removal in a future version. -
encode
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
check
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
decode
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
GenericSaltedPasswordEncoderintroduction. Internally delegates toDigestCalculator