org.acegisecurity.providers.dao.salt
public class SystemWideSaltSource extends java.lang.Object implements SaltSource, org.springframework.beans.factory.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() |
java.lang.Object |
getSalt(UserDetails user)
Returns the salt to use for the indicated user.
|
java.lang.String |
getSystemWideSalt() |
void |
setSystemWideSalt(java.lang.String systemWideSalt) |
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public java.lang.Object getSalt(UserDetails user)
SaltSource
getSalt
in interface SaltSource
user
- from the AuthenticationDao
UserDetails
public java.lang.String getSystemWideSalt()
public void setSystemWideSalt(java.lang.String systemWideSalt)
Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.