|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityRoleMapper
This interface defines the protocol used by the DOL to access the role mapping information of a J2EE application. This class is implemented by other modules and their instanciation is done through the SecurityRoleMapperFactory class.
| Method Summary | |
|---|---|
void |
assignRole(java.security.Principal p,
Role r,
RootDeploymentDescriptor rdd)
Assigns a Principal to the specified role. |
java.util.Enumeration |
getGroupsAssignedTo(Role r)
Returns an enumeration of Groups assigned to the given role |
java.lang.String |
getName()
|
java.util.Iterator |
getRoles()
|
java.util.Map |
getRoleToSubjectMapping()
|
java.util.Enumeration |
getUsersAssignedTo(Role r)
|
void |
setName(java.lang.String name)
Set the role mapper application name |
void |
unassignPrincipalFromRole(Role role,
java.security.Principal principal)
Remove the given role-principal mapping |
void |
unassignRole(Role role)
Remove all the role mapping information for this role |
| Method Detail |
|---|
void setName(java.lang.String name)
the - app namejava.lang.String getName()
java.util.Iterator getRoles()
java.util.Enumeration getUsersAssignedTo(Role r)
The - Role to which the principals are assigned to.java.util.Enumeration getGroupsAssignedTo(Role r)
The - Role to which the groups are assigned to.
void assignRole(java.security.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,
java.security.Principal principal)
role, - Role objectprincipal, - the principalvoid unassignRole(Role role)
role, - the role objectjava.util.Map getRoleToSubjectMapping()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||