public class SystemWideSaltSource extends Object implements SaltSource, InitializingBean
String
as the salt.Does not supply a different salt for each User
. This means users sharing the same password will still have the same digested
password. Of benefit is the digested passwords will at least be more protected than if stored without any salt.
Constructor and Description |
---|
SystemWideSaltSource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Object |
getSalt(UserDetails user)
Returns the salt to use for the indicated user.
|
String |
getSystemWideSalt() |
void |
setSystemWideSalt(String systemWideSalt) |
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public Object getSalt(UserDetails user)
SaltSource
getSalt
in interface SaltSource
user
- from the AuthenticationDao
UserDetails
public String getSystemWideSalt()
public void setSystemWideSalt(String systemWideSalt)