public interface SecurityRoleMapper
Modifier and Type | Method and Description |
---|---|
void |
assignRole(Principal p,
Role r,
RootDeploymentDescriptor rdd)
Assigns a Principal to the specified role.
|
Enumeration |
getGroupsAssignedTo(Role r)
Returns an enumeration of Groups assigned to the given role
|
String |
getName() |
Iterator |
getRoles() |
Map |
getRoleToSubjectMapping() |
Enumeration |
getUsersAssignedTo(Role r) |
void |
setName(String name)
Set the role mapper application name
|
void |
unassignPrincipalFromRole(Role role,
Principal principal)
Remove the given role-principal mapping
|
void |
unassignRole(Role role)
Remove all the role mapping information for this role
|
void setName(String name)
the
- app nameString getName()
Iterator getRoles()
Enumeration getUsersAssignedTo(Role r)
The
- Role to which the principals are assigned to.Enumeration getGroupsAssignedTo(Role r)
The
- Role to which the groups are assigned to.void assignRole(Principal p, Role r, RootDeploymentDescriptor rdd)
p
- The principal that needs to be assigned to the role.r
- The Role the principal is being assigned to.rdd
- The descriptor of the module calling assignRole.void unassignPrincipalFromRole(Role role, Principal principal)
role,
- Role objectprincipal,
- the principalvoid unassignRole(Role role)
role,
- the role objectMap getRoleToSubjectMapping()
Copyright © 2020. All rights reserved.