org.springframework.security.provisioning.GroupManager |
![]() |
Allows management of groups of authorities and their members.
Typically this will be used to supplement the functionality of a UserDetailsManager
in situations where the organization of application granted authorities into groups is preferred over
a straight mapping of users to roles.
With this scenario, users are allocated to groups and take on the list of authorities which are assigned to the group, providing more flexible administration options.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assigns a new authority to a group.
| |||||||||||
Makes a user a member of a particular group.
| |||||||||||
Creates a new group with the specified list of authorities.
| |||||||||||
Removes a group, including all members and authorities.
| |||||||||||
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.
|
Assigns a new authority to a group.
Makes a user a member of a particular group.
username | the user to be given membership. |
---|---|
group | the name of the group to which the user will be added. |
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.