Class SaltEncodingPolicy
java.lang.Object
de.hybris.platform.persistence.security.SaltEncodingPolicy
Spring bean used by
GenericSaltedPasswordEncoder that defines
a strategy in which salt is calculated. It is backward-compatible with salting logic provided by now deprecated
SaltedMD5PasswordEncoder-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateUserSalt(String uid) Generates salt based on user idReturns system specific saltbooleanisSaltedAlready(String password) Checks if the submitted string starts with the return value ofisSaltedAlready(String).Return password with added saltvoid
-
Constructor Details
-
SaltEncodingPolicy
public SaltEncodingPolicy()
-
-
Method Details
-
generateUserSalt
Generates salt based on user id- Parameters:
uid- user id- Returns:
- user-salt
-
saltify
Return password with added salt- Parameters:
uid- user idpassword- password to be salted- Returns:
- salted password
-
isSaltedAlready
Checks if the submitted string starts with the return value ofisSaltedAlready(String).- Parameters:
password- the submitted password- Returns:
- true if the submitted string starts with the value of of
isSaltedAlready(String).
-
getSystemSpecificSalt
Returns system specific salt- Returns:
- system specific salt
-
setSalt
-