Class PKbasedSaltedMD5PasswordEncoder
- java.lang.Object
-
- de.hybris.platform.persistence.security.MD5PasswordEncoder
-
- de.hybris.platform.persistence.security.SaltedMD5PasswordEncoder
-
- de.hybris.platform.servicelayer.security.PKbasedSaltedMD5PasswordEncoder
-
- All Implemented Interfaces:
PasswordEncoder,java.io.Serializable
@Deprecated public class PKbasedSaltedMD5PasswordEncoder extends SaltedMD5PasswordEncoder
Deprecated.since agesMD5 password encoder, which uses the user PK as salt.
Advantage: Changing the 'user id' will not affect the stored password, which will be the case if we would use the 'user id' as salt like in ourSaltedMD5PasswordEncoder
Disadvantage: Exporting and reimporting of the user passwords into a new system, will not work because of the changed PK values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PKbasedSaltedMD5PasswordEncoder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgenerateUserSpecificSalt(java.lang.String userId)Deprecated.This implementation will still return the assigned user id.voidsetUserService(UserService userService)Deprecated.-
Methods inherited from class de.hybris.platform.persistence.security.SaltedMD5PasswordEncoder
check, check, decode, encode, encode, getSalt, getSystemSpecificSalt, setSalt, setSaltEncodingPolicy
-
Methods inherited from class de.hybris.platform.persistence.security.MD5PasswordEncoder
calculateMD5
-
-
-
-
Method Detail
-
setUserService
public void setUserService(UserService userService)
Deprecated.- Parameters:
userService- the userService to set
-
generateUserSpecificSalt
protected java.lang.String generateUserSpecificSalt(java.lang.String userId)
Deprecated.Description copied from class:SaltedMD5PasswordEncoderThis implementation will still return the assigned user id.- Overrides:
generateUserSpecificSaltin classSaltedMD5PasswordEncoder- Parameters:
userId- the user id- Returns:
- the string representation of the user PK.
-
-