java.lang.Object | ||||
↳ | org.springframework.dao.support.DaoSupport | |||
↳ | org.springframework.jdbc.core.support.JdbcDaoSupport | |||
↳ | org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl | |||
↳ | org.springframework.security.provisioning.JdbcUserDetailsManager |
Jdbc user management service, based on the same table structure as its parent class, JdbcDaoImpl.
Provides CRUD operations for both users and groups. Note that if the enableAuthorities
property is set to false, calls to createUser, updateUser and deleteUser will not store the
authorities from the UserDetails or delete authorities for the user. Since this class cannot differentiate
between authorities which were loaded for an individual or for a group of which the individual is a member,
it's important that you take this into account when using this implementation for managing your users.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl
| |||||||||||
From class
org.springframework.dao.support.DaoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assigns a new authority to a group.
| |||||||||||
Makes a user a member of a particular group.
| |||||||||||
Modify the current user's password.
| |||||||||||
Creates a new group with the specified list of authorities.
| |||||||||||
Create a new user with the supplied details.
| |||||||||||
Removes a group, including all members and authorities.
| |||||||||||
Remove the user with the given login name from the system.
| |||||||||||
Returns the names of all groups that this group manager controls.
| |||||||||||
Obtains the list of authorities which are assigned to a group.
| |||||||||||
Locates the users who are members of a group
| |||||||||||
Deletes an authority from those assigned to a group
| |||||||||||
Deletes a user's membership of a group.
| |||||||||||
Changes the name of a group without altering the assigned authorities or members.
| |||||||||||
Optionally sets the UserCache if one is in use in the application.
| |||||||||||
Update the specified user.
| |||||||||||
Check if a user with the supplied login name exists in the system.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl
| |||||||||||
From class
org.springframework.jdbc.core.support.JdbcDaoSupport
| |||||||||||
From class
org.springframework.dao.support.DaoSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.security.core.userdetails.UserDetailsService
| |||||||||||
From interface
org.springframework.security.provisioning.GroupManager
| |||||||||||
From interface
org.springframework.security.provisioning.UserDetailsManager
|
Assigns a new authority to a group.
Makes a user a member of a particular group.
username | the user to be given membership. |
---|---|
groupName | the name of the group to which the user will be added. |
Modify the current user's password. This should change the user's password in the persistent user repository (datbase, LDAP etc).
oldPassword | current password (for re-authentication if required) |
---|---|
newPassword | the password to change to |
AuthenticationException |
---|
Creates a new group with the specified list of authorities.
groupName | the name for the new group |
---|---|
authorities | the authorities which are to be allocated to this group. |
Removes a group, including all members and authorities.
groupName | the group to remove. |
---|
Returns the names of all groups that this group manager controls.
Obtains the list of authorities which are assigned to a group.
Locates the users who are members of a group
groupName | the group whose members are required |
---|
Deletes an authority from those assigned to a group
Deletes a user's membership of a group.
username | the user |
---|---|
groupName | the group to remove them from |
Changes the name of a group without altering the assigned authorities or members.
Optionally sets the UserCache if one is in use in the application. This allows the user to be removed from the cache after updates have taken place to avoid stale data.
userCache | the cache used by the AuthenticationManager. |
---|
Check if a user with the supplied login name exists in the system.
ApplicationContextException |
---|