java.lang.Object | |
↳ | org.springframework.security.authentication.dao.ReflectionSaltSource |
Obtains a salt from a specified property of the User
object.
This allows you to subclass User
and provide an additional bean getter for a salt. You should use a
synthetic value that does not change, such as a database primary key. Do not use username
if it is
likely to change.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs reflection on the passed
User to obtain the salt. | |||||||||||
The method name to call to obtain the salt.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.security.authentication.dao.SaltSource
|
Performs reflection on the passed User
to obtain the salt.
The property identified by userPropertyToUse
must be available from the passed User
object. If it is not available, an AuthenticationServiceException
will be thrown.
user | which contains the method identified by userPropertyToUse |
---|
AuthenticationServiceException | if reflection fails |
---|
The method name to call to obtain the salt. Can be either a method name or a bean property name. If your
UserDetails
contains a UserDetails.getSalt()
method, you should set this property to
"getSalt" or "salt".
userPropertyToUse | the name of the getter to call to obtain the salt from the
UserDetails
|
---|